Remove Sidebar from Post type or specific Category on single post view?

Viewing 9 posts - 1 through 9 (of 9 total)
  • #11716
    mnancarrow01
    Participant

    I’m really hoping to be able to remove the sidebar from the single-view pages on my portfolio category.

    ie, here: http://www.maggienancarrow.com/?p=2592

    I tried selecting different post-types in the theme, but I can’t come up with anything. I am really hoping to not need to do any php editing, so I was wondering if there is a setting within the theme that I have missed.

    #11720
    Alexander
    Participant

    Hi mnancarrow01,

    for pages you can try one of the templates with no sidebar.

    Cheers,
    Alexander @ http://www.mouseclick.com

    #11721
    mnancarrow01
    Participant

    I was hoping there was a version for posts?

    #11781
    Daniel Tara
    Keymaster

    You can create custom templates and include your desired changes; for post types name them single-{post_type}.php and for category category-{category_slug}.php

    #11794
    mnancarrow01
    Participant

    Okay cool, thanks. πŸ™‚
    http://www.maggienancarrow.com

    #22906
    markdj
    Participant

    I’ve just found this post but don’t understad how to use the information provided. Could someone explain it further?

    Thanks

    #22981
    kammi
    Participant

    Hi there,

    I am also interested in only having a sidebar on the homepage with no side bar on 900px wide post pages. Would anyone please be able to explain the solution in more detail?

    Thank you!

    #22984
    Daniel Tara
    Keymaster

    Here’s a quick hack to hide the sidebar on single posts. Go to Appearance → Theme Options → Layout and enter the following under Custom CSS:

    .single #wrapper {
        max-width: 760px;
    }
    
    .single #content {
        width: 100%;
    }
    
    .single #sidebar {
        display: none;
    }
    #22988
    kammi
    Participant

    Hi Daniel, thank you very much for your solution!

    Best wishes
    Kammi

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

You must be logged in to reply to this topic.