• Resolved creativepassion

    (@creativepassion)


    I’d like to remove widgets on certain pages, and have started creating a new template, as per this previous topic:

    But page.php in twentyfifteen doesn’t use this call (which the previous topic says to remove):
    <?php get_sidebar(); ?>

    I am using a child theme.

    Thanks.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The sidebar in twentyfifteen is in the header file.

    Thread Starter creativepassion

    (@creativepassion)

    Thanks csloisel! Sorry if this is a dumb question, but can I remove it on certain static pages?

    You could create an alternate header template without the sidebar markup to include where you want it. But I should point out that the sidebar in that theme essentially is the header, and it contains the site/title logo which would be gone if you removed the sidebar.

    Thread Starter creativepassion

    (@creativepassion)

    Thanks again csloisel. I’m happy to keep the sidebar (logo and menu). Just want to remove the Categories/Tags/Archives.

    Thread Starter creativepassion

    (@creativepassion)

    Clarification: Just want to remove the Categories/Tags/Archives on certain static pages.

    You also have an alternative method… instead of messing with code, install Jetpack and use the Widget visibility module 🙂

    Thread Starter creativepassion

    (@creativepassion)

    Thanks Samuel Aguilera. But if we don’t have a WordPress.com site, would Jetpack still work?

    Thread Starter creativepassion

    (@creativepassion)

    Just found a sterling little plugin called Widget Visibility by Nico Amarillo which does this beautifully!!!

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Remove widgets on particular pages’ is closed to new replies.