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

Viewing 11 posts - 1 through 11 (of 11 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

    #42307
    Aliraza
    Participant

    Multipoint door lock systems ensure superior security, just as customizing your website layout improves user experience. If you’re aiming to remove the sidebar from a specific post type or category on single post views, use conditional tags in your theme’s single.php or via a custom function. This method offers flexibility in design—ensuring both your physical and digital spaces are streamlined, efficient, and tailored to specific access or content needs.

    #51470
    Aliraza
    Participant

    Local locksmith services ensure fast, dependable support when you’re locked out or facing urgent lock issues. Serving homes, offices, and vehicles, they handle everything from lost keys to broken locks. Available around the clock, these professionals offer peace of mind with prompt response and quality workmanship. No matter the time or situation, a local locksmith is just a call away—ready to restore your security and get you back on track quickly.

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

You must be logged in to reply to this topic.