Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Sidebars & Widgets (http://forum.bytesforall.com/forumdisplay.php?f=14)
-   -   [SOLVED] Disable Page on front page (http://forum.bytesforall.com/showthread.php?t=962)

conon Mar 26, 2009 07:17 AM

[SOLVED] Disable Page on front page
 
I have added a third sidebar using these guidelines , and I am using top and bottom images to my posts using this guide.

I don't want to have any posts or static page on my front page, only widgets with my three bars. Using an empty static page does'nt work since I'm using top and bottom image for posts.

Where can I disable it? Is this the best solution for having only widgets on the front page?

My page

Thanks in advance,
Sebastian

Flynn Mar 26, 2009 04:16 PM

In index.php

PHP Code:

replace
<?php get_header(); ?>

with

PHP Code:

<?php get_header(); ?>
<?php 
if ( !is_home() ) { ?>

and replace
PHP Code:

YOUR EXTRA WIDGET AREA CODE
<?php get_footer(); ?>

with
PHP Code:

<?php ?>
YOUR EXTRA WIDGET AREA CODE
<?php get_footer(); ?>

In the code above I am assuming that you've put a third widget area ("YOUR EXTRA WIDGET AREA") at the bottom of the middle column, probably right before <?php get_footer(); ?>


All times are GMT -6. The time now is 01:29 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.