Remove sidebar in single.php (3 posts)

  1. laubacht
    Posted 4 years ago #

    THEME: Kernel from orange-themes.com

    Page example...

    I am tying to eliminate the sidebar in the single.php posts, but simply removing the THEME_INCLUDES.'sidebar' doesn't work properly.

    I am also trying to resize the column from the 579px is currently is to 750px, but only do so on the single.php file, not for the rest of the site.

    Below is the code from the single.php file.

    [code moderated - the limit for direct posting of code is 10 lines - for more, please use the pastebin]

    Thanks all!

  2. davidsword
    Posted 4 years ago #

    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*/

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

  3. laubacht
    Posted 4 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic