WordPress.org

Ready to get started?Download WordPress

Forums

Magazino
How to remove sidebar on home page? (2 posts)

  1. kurtzky
    Member
    Posted 10 months ago #

    Hi. I came across a thread about the creation of a sidebar that will appear on the right side of posts. Here is the link: http://wordpress.org/support/topic/how-to-add-a-sidebar-4

    I followed the steps stated there and I was able to have the sidebar appear on the right side of my posts. The problem is, the sidebar also appears on my home page.

    Then I tried to modify the calling on my sidebar.php to 'hide' the sidebar on my homepage using this code:

    <?php if(!is_home()) {
    	get_sidebar('side');
    } ?>

    But my home page leaves a blank space on the right side, causing the grids to move farther to the left. I'm guessing it's because of the CSS code that sets the width of #main and #sidebar. Is there a way to separate the #main width for posts and index page?

    My blog is http://www.kurtzky.com. For now I've removed the sidebar cos it doesn't look nice on my homepage. :)

    Any help guys? Thanks in advance!

  2. kurtzky
    Member
    Posted 10 months ago #

    Alright, this one's solved already. I was able to find the solution. :)

Reply

You must log in to post.

About this Theme

About this Topic