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 09: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 10: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 10: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 10:58 PM

Could I use: %home%

lmilesw Oct 15, 2010 11:01 PM

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

mimikbos Oct 16, 2010 12:10 PM

PERFECT! Thank you!!!!


All times are GMT -6. The time now is 08:39 PM.

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