Disable Sidebar in child categories (2 posts)

  1. liamg1987
    Posted 6 years ago #

    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!

  2. esmi
    Forum Moderator
    Posted 6 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic