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)
-   -   How can I control the header image based on the page? (http://forum.bytesforall.com/showthread.php?t=11025)

ochayemin Nov 7, 2010 06:07 PM

How can I control the header image based on the page?
 
Hi

I love the Atahualpa theme! So much configuration!

I want to select the header image based on the page that I'm currently viewing. Is there a way to do this in Atahualpa?

I'm a rank beginner with PHP/CSS etc. but what I'd like to do is something like:
<?php $image = '';
if( is_page('About') ) :
$image = 'AboutImage.jpg';
elseif( is_page('Contact') ) :
$image = 'ContactImage.jpg';
endif;
if( $image != '' ) :
echo '<img src=".........'
endif;
?>

Thanks

juggledad Nov 7, 2010 06:12 PM

You can do this thru CSS. Do a forum search - it was asked October 14th


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

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