Remove sidebar from subpages

Community Forums Forums Design Tips and Tricks Remove sidebar from subpages

This topic is: not resolved

This topic contains 6 replies, has 2 voices, and was last updated by  avhslibrary 1 year, 6 months ago.

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

    avhslibrary
    Participant
    Post count: 18

    I have managed to remove the appearance of the primary sidebar from all pages. However, there is still a blank space where the sidebar should be.

    For example,  http://www.amadorvalleyhs.org/?page_id=956

     

    I saw and used this: http://www.studiopress.com/forums/topic/balance-theme-remove-sidebar-from-home/

    But it removed both the primary and secondary sidebars on the page above. Is there something similar I could do for non-home pages?

    Would a better strategy possibly be to create a new sidebar and implement that instead?

    Thank you,

     

    Erik

     

     

     

     

     

    #16774

    SoZo
    Moderator
    Post count: 1573

    How did you remove the sidebar?


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

    #16778

    avhslibrary
    Participant
    Post count: 18

    I used this  in functions.php:

    remove_action( ‘genesis_after_content’, ‘genesis_get_sidebar’ );

    #16797

    SoZo
    Moderator
    Post count: 1573

    Get rid of that and set your default layout to full width in the Genesis settings panel


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

    #16820

    avhslibrary
    Participant
    Post count: 18

    I could do that but I still want the secondary sidebar to display.

    I tried setting the default layout to full width and also include a new sidebar but that didn’t work either.

    #16850

    SoZo
    Moderator
    Post count: 1573

    If you only want one sidebar use the primary sidebar. You would need to switch out the sidebars otherwise.


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

    #17092

    avhslibrary
    Participant
    Post count: 18

    Thanks, Sozo, I will try switching them out.

     

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

You must be logged in to reply to this topic.