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

  1. kurtzky
    Posted 2 years 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()) {
    } ?>

    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
    Posted 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic