Hide the sidebar on your wordpress blog homepage
December 26, 2008 · Print This Article
The sidebar is a very important element of your wordpress, but sometimes, you just don’t want it to be displayed on your wordpress homepage.
If you’d like to know how to do, it is simple.
To hide your sidebar on your blog homepage, edit the index.php file from your theme and find the code following:
<?php get_sidebar(); ?>
Replace it by the code following:
<?php if (!is_front_page()) {
get_sidebar();
} ?>




















Comments
Got something to say?
You must be logged in to post a comment.