Header Images - One fixed image for Home Page - Rotate all images on all other pages?
Header Images - One fixed image for Home Page - Rotate all images on all other pages?
Is there a way to do this? TIA |
You would have to set up a conditional to display an image on the home page and %image on all the others. Something like the following.
HTML Code:
<?php if( is_home() ) { ?> |
Thanks for the response....
Is this the same approach if I wanted to use a specific image as a header for each of my 8-10 pages? Also, where do I use this code? On one of the theme set up pages? Apologies for the newbie questions. Robert |
Yes... The code would be
HTML Code:
<?php if( is_page('33') ) { ?> |
Where would this code be used exactly?
|
it would go in ATO->Style & edit HEADER AREA->Configure Header Area
|
I tried that and ended up with no header at all. I'll give it another try and see if I can figure out why.
|
Tyran - you probably have a coding error. post the code you used
|
lmilesw's code above actually contains the error. Corrected example code below:
Quote:
|
The main problem with the original code is that it does not properly (as in it doesn't do it at all) insert the blog name or tag line. The code below inserts the image into the block created by %image:
HTML Code:
<?php if( is_page('29') ) { |
Sorry about the missing }. The code I mentioned was only intended for the images. Where did you want your blog title and tag line to be displayed?
|
All times are GMT -6. The time now is 09:19 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.