![]() |
head.tpl - posting different image on index than other pages
Hi there!
I have 2 images in the head.tpl area. I'm looking for the proper if/else code (if that's what I need) to have one of the images change if the person is on the home page vs. other pages in the site. So, if on the /customer/home.php page Version A would appear. But, if on any other page, Version B would appear. Both images are the exact same size, I just need it call Version A when /customer/home.php is up and call Version B when any other page is up. Thanks to all geniuses! Heather |
try something like this
Code:
{if $main eq "catalog" and $current_category.category eq ""} |
Thank you! Any idea how to get rid of a pesky gap between head.tpl and the start of each page? I can't figure it out.
Thanks again wizard! Heather |
may be a
tag in there somewhere |
No, no BR tag. Here's my entire head.tpl:
Quote:
And your code worked like a charm. :) Heather |
I'm wondering if it might be somewhere in this mess (from home.tpl)
Quote:
|
without seeing the site itself its hard to say.
probably in head.tpl |
It might be the rectangle top.tpl, if it is not used try commenting it out. Does the gap run the full length between the head.tpl and bit underneath, or is it just above the central section? Also I've found Javascript tag can cause problems with breaks if the end tag isn't closed in the right place.
|
All times are GMT -8. The time now is 10:15 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.