Support » Themes and Templates » Hide right sidebar on specifik blog.

  • Resolved Jönson

    (@werun)


    Hi, I’ve two blogs using the same theme and theme files.
    But I want to remove the right sidebar in one blog.

    Something like this..

    <?php
                    //Show sidebar
    	        <div id="sidebar-right" class="right">
    		      <?php include 'sidebar_ads.php'; ?>
    	        </div>
    		}
    		elseif(BLOG_NAME == 'moa') {
                    //If blogname "moa", then dont show.
    		?>

Viewing 4 replies - 1 through 4 (of 4 total)
  • esmi

    (@esmi)

    What theme are you using? Where did you download it from?

    Jönson

    (@werun)

    It’s a custom maded.

    esmi

    (@esmi)

    Something like:

    <?php if( get_bloginfo( 'name') ! = 'Moa' ) :?>
    //Show sidebar
    <div id="sidebar-right" class="right">
    <?php include 'sidebar_ads.php'; ?>
    </div>
    <?php endif;?>

    should work.

    Jönson

    (@werun)

    Thnx Esmi!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Hide right sidebar on specifik blog.’ is closed to new replies.