The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Disable Sidebar in child categories (2 posts)

  1. liamg1987
    Posted 7 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 7 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic