WordPress.org

Support

Support » Themes and Templates » Remove sidebar in single.php

Remove sidebar in single.php

Viewing 2 replies - 1 through 2 (of 2 total)
  • you can take the easy/hack approach and remove it with css instead, paste this in singles.php right after <?php get_header(); ?>

    <style type='text/css'>
    .right_sidebar #sidebar { display:none !important; }/*hides sidebar*/
    .right_sidebar #content { background: white !important; } /*removes gray sidebar color*/
    .right_sidebar #main,
    .right_sidebar #main_inner { width: Xpx !important; } /*where Xxp is whatever width you want the main column*/
    </style>

    it’s not the best way to do it, but should do the trick.

    Thanks David! That seemed to have done it! Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove sidebar in single.php’ is closed to new replies.