Education: Different layout for Home Page

Community Forums Forums Design Tips and Tricks Education: Different layout for Home Page

This topic is: resolved

This topic contains 6 replies, has 3 voices, and was last updated by  Susan 9 months, 2 weeks ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #49260

    Rosesilk
    Participant
    Post count: 17

    Hello,

    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/
    #49266

    Susan
    Moderator
    Post count: 7200

    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.


    Susan @ Graphically Designing I’d love to customize your website! I tweet!
    I’ve taken up the challenge! – help me answer some of the unanswered posts

    #49267

    Rosesilk
    Participant
    Post count: 17

    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.

    #49270

    Susan
    Moderator
    Post count: 7200

    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' );
    

    Susan @ Graphically Designing I’d love to customize your website! I tweet!
    I’ve taken up the challenge! – help me answer some of the unanswered posts

    #49335

    braddalton
    Participant
    Post count: 7441

    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.

    https://gist.github.com/braddalton/5924781


    WordPress Developer & Consultant
    Brad Dalton400+ StudioPress Tutorials & 1200+ Code snippets

    #49343

    Rosesilk
    Participant
    Post count: 17

    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”!

    #49346

    Susan
    Moderator
    Post count: 7200

    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.


    Susan @ Graphically Designing I’d love to customize your website! I tweet!
    I’ve taken up the challenge! – help me answer some of the unanswered posts

Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘Education: Different layout for Home Page’ is closed to new replies.