Remove Sidebar from Individual Page

Community Forums Forums General Discussion Remove Sidebar from Individual Page

This topic is: not resolved

Tagged: ,

This topic contains 1 reply, has 2 voices, and was last updated by  cehwitham 1 year, 1 month ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #20214

    grant.brown
    Participant

    Having a hard time finding a solution for this.  What I’d like to do is simply remove the Primary Sidebar for a custom page template.  I’ve tried the following to no success so far in functions.php:

    <code>if ( is_page(190468) ) {
    remove_action( ‘genesis_sidebar’, ‘genesis_do_sidebar’ );
    }</code>

    Any help would be much appreciated.  I don’t want to remove the sidebar from the white theme, just certain pages.

    Thanks,

    Grant

    #22095

    cehwitham
    Participant
    Post count: 396

    Hi Grant,

    You’d be better just putting the following code into your custom page template file rather than functions.php:

    remove_action( ‘genesis_sidebar’, ‘genesis_do_sidebar’ );

    Here’s a tutorial on making a custom page template: http://genesistutorials.com/creating-a-custom-template-in-genesis/


    Twitter: cehwitham Web: cehwitham.com

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

You must be logged in to reply to this topic.