WordPress.org

Support

Support » Themes and Templates » Disable Sidebar in child categories

Disable Sidebar in child categories

  • hello everyone,

    Ive recently managed to disable my sidebar on my parent category page “Portfolio”
    only once in portfolio and I click on a child category of that ie “logo 1” on that page my sidebar now re appears?

    heres my php

    <?php if (is_page('work')) : ?>
    <?php else : ?>
    <?php get_sidebar(); ?>
    <?php endif; ?>

    Ive tried

    (is_page('work, logo1')) and (is_page('work/'))

    to no avail, Id greatly appreciate any help, thanks!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Disable Sidebar in child categories’ is closed to new replies.