- This topic has 6 replies, 3 voices, and was last updated 10 years, 2 months ago by .
- The topic ‘Education: Different layout for Home Page’ is closed to new replies.
These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.
I'm playing around with the Education Theme on a dummy site. http://ultimatelifestyleplan.com/
I would like to have the far right sidebar (the green one) only on the homepage. I know that I can set the content-sidebar-sidebar layout as default and then change the layout for every post & page I make to be content-sidebar.
Is there an easier way? Logically the default layout should be content-sidebar. Only the homepage needs the variation but there is no "page" for me to modify the layout to content-sidebar-sidebar for the homepage.
Thank you. I appreciate your help.http://ultimatelifestyleplan.com/
Try this tutorial by Brian Lis:
http://brianlis.com/add-a-unique-sidebar-to-the-genesis-home-page.htm/ - I believe this method overrides the "default" for the homepage, so you could do this for the homepage, and have a default content-sidebar on the remainder of the site.
Thank you, Susan. I think this is getting a bit complicated for me. Is there any way I could choose the "content-sidebar-sidebar" layout (as recommended for the theme) but add a bit of code that says if it isn't the home page, it should not show the secondary sidebar?
If not, I think I'll just choose the layout I want for each page.
Thank you very much for your help.
You could add some conditional code to your functions code that if it is not the homepage, you could remove the secondary sidebar. (I would need to test some code to double-check the correct way to do it.)
There is a code snippet to remove the secondary sidebar site-wide, so I think it's a matter of modifying that snippet:
//* Unregister secondary sidebar unregister_sidebar( 'sidebar-alt' );
Try the Genesis Layouts plugin http://wordpress.org/plugins/genesis-layout-extras/
Here's some code you can use to change the layout conditionally if needed.
OH My Word, Brad. Thank you!
First of all, where have I been? I thought I knew "all things genesis" and yet somehow, I never noticed this plugin. This is exactly what I was asking for.
And then a double, super-dooper thank you for the code.
I really appreciate your help, Brad and Susan. You can mark this post as "happily closed"!
I'm glad Brad was able to resolve this for you. I will have to make note of that plugin, too - I've heard of it, but it's not one I've used myself.
© 2023 WPEngine, Inc.