Support » Fixing WordPress » Disable sidebar for specific category

  • Hi, does anyone know how to disable the sidebar for a specific category?

    I don’t know php so this is what I came up with:

    <?php
    if (is_category(‘3’)) {
    // no sidebar for category 3
    } else {
    // otherwise show sidebar
    (get_sidebar(”))
    ?>

    but of course it doesn’t work. Any ideas?

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Disable sidebar for specific category’ is closed to new replies.