Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Header configuration & styling (http://forum.bytesforall.com/forumdisplay.php?f=15)
-   -   [SOLVED] use the header only on the posts page/home page and exclude all other pages (http://forum.bytesforall.com/showthread.php?t=10381)

mimikbos Oct 15, 2010 08:49 PM

[SOLVED] use the header only on the posts page/home page and exclude all other pages
 
I'm using the posts page/home page as the front page of the site with a different landing page for all other pages on the site. I only want the header image to show up on the post page.

Reading>set to front page displays>your latest posts

How do I exclude the header on all other pages?

lmilesw Oct 15, 2010 09:54 PM

You could use something like this in place of %image and just change the page id to that of your home page.
HTML Code:

<?php if( is_page('341') ) { ?>
%image
<?php } ?>


mimikbos Oct 15, 2010 09:57 PM

I saw that in a few place but when the home page is set to Front Page Displays Latest Posts there is no Page ID.

mimikbos Oct 15, 2010 09:58 PM

Could I use: %home%

lmilesw Oct 15, 2010 10:01 PM

In that case you would use
<?php if( is_home() ) { ?> %image <?php } ?>

mimikbos Oct 16, 2010 11:10 AM

PERFECT! Thank you!!!!


All times are GMT -6. The time now is 05:49 AM.

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