Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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?


  #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
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
You can do this thru CSS. Do a forum search - it was asked October 14th
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
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 01:18 AM.


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