Hide sidebar in post

  • Unknown's avatar

    My widgets page in the through the dashboard has nothing in the sidebar. On the homepage, I show no sidebar, which is great. But when I go into a post, it shows a sidebar with archives, search, and meta. How to I get rid of that sidebar?

    The blog I need help with is: (visible only to logged in users)

  • That sidebar is actually a part of your theme, as show on this page from the demo site: http://publisherdemo.wordpress.com/2013/06/29/heydays-branding/

    You can control what is displayed in this sidebar by going to Appearance>Widgets and adding a few widgets to your sidebar. The ones that you see now are displayed by default, as you have not added any of your own yet.

    How to I get rid of that sidebar?

    There is no way to turn it off from inside the admin dashboard, but you can add the Custom Design upgrade to your site, which will give you the ability to add your own custom CSS, along with custom fonts and theme color palettes.

    Once you have added that to your site, the following lines of code will hide the sidebar, and expand the main content column to full width:

    #primary {
    width: 100%
    }
    
    #content {
    margin: 0 auto;
    }
    
    #secondary {
    display: none;
    }

    Hope that helps. Please let me know if you have any further questions.

  • Unknown's avatar

    Thank you so much, Jerry! I previewed those changes and they work great.

  • Great, glad I could help!

    Happy Blogging :)

  • The topic ‘Hide sidebar in post’ is closed to new replies.