• With you alls help I was able to create a no side bar template for my pages but I’d also like to remove the sidebar from my category pages. Any ideas? My website is truegearhead.com/test

Viewing 6 replies - 1 through 6 (of 6 total)
  • if your theme has a category.php template, use this;
    if not – does it have an archive.php template? – then make a copy of that and save it as category.php;
    if no archive.php either, make a copy of index.php and save it as category.php.

    edit category.php, remove the ‘get_sidebar()’ code the same way as you might have done with page.php;

    then do the changing again to:

    <div id="content" class="widepage">
    Thread Starter truegearhead

    (@truegearhead)

    Alright, I was able to get rid of the sidebar but I can’t widen my content. If I add the “<div id=”content” class=”widepage”>” code to the archive file will that reference my widepage template I have setup or do I need to put it into a different file?
    Thanks

    If I add the “<div id=”content” class=”widepage”>” code to the archive file will that reference my widepage template I have setup

    if the archive file already has the <div id="content"> then change it to <div id="content" class="widepage">

    (if not, then you might need to edit header.php)

    (i don’t know how you solved this with your static pages, but the same should work for the archive file as well)

    Thread Starter truegearhead

    (@truegearhead)

    No luck on id=”content” class=”widepage”>, but I think I’m getting close. Take a look at the link below. If I can figure out how to stop the posts from being offset correctly I’ll be good. Any ideas on how to fix the posts?

    http://truegearhead.com/test/category/tgh-shake-down

    without a specific css class or css id for the category archive without sidebar, any css customisation will be problematic.

    how did you solve this for the page without sidebar?

    Thread Starter truegearhead

    (@truegearhead)

    I deleted “get sidebar” from the archive.php file.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘No sidebar on Category pages’ is closed to new replies.