• I’d like to remove my sidebar from individual posts to create more room for the main text of those posts.

    I had found a number of posts on this forum explaining how to remove the sidebar, and I’ve actually figured that part out. The trick is how to get the main text to fill up the new space that I’ve created!

    Any help/guidance is greatly appreciated!

Viewing 4 replies - 1 through 4 (of 4 total)
  • You need to edit your theme’s stylesheet (usually it’s style.css file located in theme directory) so that your block would be wider. I can’t tell you exact solution, because I don’t know what theme you are using as well as what sidebar you talking about.

    Thread Starter jerethi99

    (@jerethi99)

    Thanks for the reply. My blog is at https://www.assortmentstoday.com. Basically, it’s a three-column layout, and I’m hoping to remove the sidebar on the left on individual posts.

    I’d love any feedback or suggestions on the proper code I’d need to use to accomplish this. Thanks!

    try to wrap the <div id="sidebar-primary"> div section in sidebar.php into a conditional statement;
    example:

    <?php if( !is_single() ) : ?>
    <div id="sidebar-primary">
    ...
    </div>
    <?php endif; //ends if( !is_single() )// ?>

    and add to style.css:
    .single #content {width: 625px; margin-left: 10px;}

    untested – no guarantee that it will work ;-(

    Thread Starter jerethi99

    (@jerethi99)

    alchymyth – that worked perfectly! Thanks so much!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Remove sidebar to create more space’ is closed to new replies.