• Resolved assisted

    (@assisted)


    Hi,
    Is it possible to hide the sidebar in a category?

    I want it to show on posts on the main page but not posts within a category.

    Thanks,
    Leanne

Viewing 9 replies - 1 through 9 (of 9 total)
  • Assuming you mean a category listing page, have a look at Category_Templates.

    Thread Starter assisted

    (@assisted)

    Hi,
    I looked but far too complex for me.
    Seeking a simple solution if such exists!

    That is the simple solution! If your theme already has a category.php template file, it may be just as simple as removing <?php get_sidebar();?>.

    Thread Starter assisted

    (@assisted)

    it doesn’t 🙁 I guess that’s my problem lol

    Ok – let’s start with small steps. Does your theme have a category.php file? If not, does it have an archive.php file?

    Thread Starter assisted

    (@assisted)

    It only has an archive.php file

    Sorry if I’m a dumb ass!

    Thread Starter assisted

    (@assisted)

    I’ve solved it 🙂 removed <?php get_sidebar(); ?>

    from archive.php

    thanks, it really was easy lol

    See – I said it was simple. Next tome, we’ll get you removing 2 or more lines of code. 😉

    Tina

    (@sunflowermom)

    i need help with this same thing…i also do not have a category.php page but i do have archive.php…but it doesn’t have anything about sidebars in it. it appears to call the sidebar in page.php, but since i only want to suppress a specific category, what would the code be that i should put in there?

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

The topic ‘Hide Sidebar from category?’ is closed to new replies.