Forum Moderators: rogerd & travelin cat

Message Too Old, No Replies

Avada theme: can one page have different layout than other?

         

myrrh

3:15 pm on Apr 8, 2014 (gmt 0)

10+ Year Member



I had someone install the Avada theme which I get the impression is one of the more popular themes.

I want my home page to have one column and no sidebars. I want most of the other pages to have one main content column with a sidebar.

The developer told me that it was not possible (or perhaps he said it was difficult) to do what I described above.

I have a hard time believing that achieving what I want to do is significantly more work than just some configuration in the dashboard.

I would appreciate your input on this to let me know if I'm correct or not.

Thank you!

travelin cat

3:23 pm on Apr 8, 2014 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



I'm not familiar with that theme, but if you have Jetpack, one of its features is this:

Widget Visibility
Control which pages your widgets appear on with Widget Visibility.

To control visibility, expand the widget and click the Visibility button next to the Save button, and then, choose a set of visibility options.

For example, if you wanted the Archives widget to only appear on category archives and error pages, choose "Show" from the first dropdown and then add two rules: "Page is 404 Error Page" and "Category is All Category Pages."

You can also hide widgets based on the current page. For example, if you don't want the Archives widget to appear on search results pages, choose "Hide" and "Page is Search results."

lorax

3:34 pm on Apr 8, 2014 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I have the Avada theme installed on a client site and see no reason why you couldn't do that. It's simply a matter of building the front page the way you want and then setting the Static Front Page.

myrrh

3:41 pm on Apr 8, 2014 (gmt 0)

10+ Year Member



Thanks travelin cat -

I think I understand what you're saying. The widgets in Widget Visibility - are those widgets in the sidebar?

And how about if I approach it in another way:

Make the home page one column with a sidebar on each side, but leave the sidebars blank.

Is it possible to do that with one page only and have the other pages with one main content column and one sidebar?

travelin cat

3:52 pm on Apr 8, 2014 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



With widget visibility, you tell it which pages, dates, authors, tags, categories or taxonomies to display each widget on, including the home page. If you create a sidebar and tell all of the widgets to display on all pages except the home page, the home page will act like a single column page while the other pages you choose will display whatever widgets you tell it to display on those pages only.

myrrh

4:02 pm on Apr 8, 2014 (gmt 0)

10+ Year Member



Thanks lorax and travelin cat,

Just to be clear, can I make the home page one column with a sidebar on each side, but leave the sidebars blank to achieve a narrow column of centered body text...

And

Have the other pages with one main content column and one sidebar with widgets in the sidebar?

travelin cat

4:18 pm on Apr 8, 2014 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



You can use CSS on the home page to narrow it to whatever you want. The other pages can have whatever widgets you want in the sidebar. You can have one page with many widgets, and another with only one. You create the "rules" that tell WP what to do.

Planet13

2:16 pm on Apr 10, 2014 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I don't know if this holds true with the Avada theme, but this is the way it works in the genesis framework themes...

If there are home page widgets, you have to start putting things into the homepage widgets before the sidebars (and their widgets) will disappear from the homepage.

lorax

1:18 am on Apr 11, 2014 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



@Planet13 - not true for Avada but good to know. :)

Planet13

4:26 pm on Apr 12, 2014 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Yeah, I nearly mutilated one of my Genesis sites trying to remove the sidebar widgets from the home page until I remembered I just had to start adding dummy text to the home page widgets.

eric_hudson

6:30 pm on Apr 16, 2014 (gmt 0)

10+ Year Member



Yes that is possible, you just have to create a template for it. For example create a php template page on your theme folder and name it page-nameofyourtemplate.php then edit a page (ie about page) in admin panel and change the attributes template to desired/created/customized template (page-nameofyourtemplate.php)