Support » Theme: Priimo » removing sidebar from posts

  • Resolved saltyseadog


    I need to remove the sidebar from all posts. I have tried adding a

    .post #sidebar {
    display: none;

    line to my css and have also tried removing

    <?php get_sidebar(1); ?>

    from my single.php but neither work. My php knowledge just isn’t quite up to it. I get the feeling that ‘sidebar’ is named differently in Priimo hence why it won’t work.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Mikey Arce


    Automattic Happiness Engineer

    hey @saltyseadog,

    can you send me a link to your site?
    Also – are you trying to remove the sidebar from every individual post page or the page that displays all the recent posts?

    Hi mikeyarce

    unfortunately i am developing the site locally on my laptop so I can’t send you the link.

    I want to remove the sidebar from all post pages.


    Mikey Arce


    Automattic Happiness Engineer


    no problem – I’m sure we can figure it out without a live link.
    1. Are there any theme options under “Appearance – Theme Options”?
    Possibly there you might see options for enabling/disabling the sidebar.

    2. If not – you want to edit Index.php and not single.php.
    single.php takes care of the single-blog post page. index.php takes care of your latest blog posts.

    Check out: Template_Hierarchy
    to see what templates do what. It’s a pretty useful document.



    Forum Moderator

    are you trying to remove the sidebar from single post pages or from all index pages and archive pages?

    for example, the sidebar call is in single.php near the top and also near the bottom – have you removed both?
    same in index.php ?

    also, the grey ‘sidebar’ is a background image on the #content div; the style for it gets embedded in the head section:
    #content { background-image: url(http://localhost/wordpress/wp-content/themes/priimo/images/wrapper_left_bg.png); background-repeat: repeat-y; background-position: -250px 0; }

    you will need to overwrite this in style.css of your, for instance just for single posts, with:
    .single #content { background: none!important; }
    or generally:
    #content { background: none!important; }

    you also need to adapt the .container width

    thank you both. the sidebar has now gone and I have adapted the .container width.

    many thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘removing sidebar from posts’ is closed to new replies.