WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Hide right sidebar on specifik blog. (5 posts)

  1. Jönson
    Member
    Posted 1 year ago #

    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.
    		?>
  2. esmi
    Forum Moderator
    Posted 1 year ago #

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

  3. Jönson
    Member
    Posted 1 year ago #

    It's a custom maded.

  4. esmi
    Forum Moderator
    Posted 1 year ago #

    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.

  5. Jönson
    Member
    Posted 1 year ago #

    Thnx Esmi!

Topic Closed

This topic has been closed to new replies.

About this Topic