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, 10 months ago.

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


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

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




    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:

    Twitter: cehwitham Web:

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

You must be logged in to reply to this topic.