Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Header configuration & styling »

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


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Nov 7, 2010, 06:07 PM
ochayemin
 
9 posts · Nov 2010
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
  #2  
Old Nov 7, 2010, 06:12 PM
juggledad's Avatar
juggledad
 
22,059 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
You can do this thru CSS. Do a forum search - it was asked October 14th
__________________
If you like my help, please consider donating. I am happy to provide greater detail on this and other topics if you hire me. Please send detailed support requests to me as a private message, thank you.
Juggledad | Forum Moderator/Support

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Category page sorting of posts based on WP-PostRatings? Dr.GameMaker Plugins & Atahualpa 8 Aug 9, 2010 12:46 PM
Can not control the Page sub_menu's width tsuxia Page & Category Menu Bars 1 Jul 4, 2010 09:18 PM
Conditional Logic for %logo and %image control cab262 Header configuration & styling 1 May 5, 2010 08:24 AM
Change image based upon width haenchensd Header configuration & styling 1 Aug 3, 2009 03:21 PM
How to customize sidebars based on page guacamoly Sidebars & Widgets 1 May 5, 2009 05:46 PM


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


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