| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
head.tpl - posting different image on index than other pages | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() 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
__________________
Thank you! |
|||||||||
#2
|
|||||||||
|
|||||||||
![]() try something like this
Code:
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. ![]() ![]() |
|||||||||
#3
|
|||||||||
|
|||||||||
![]() 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
__________________
Thank you! |
|||||||||
#4
|
|||||||||
|
|||||||||
![]() may be a
tag in there somewhere
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. ![]() ![]() |
|||||||||
#5
|
|||||||||
|
|||||||||
![]() No, no BR tag. Here's my entire head.tpl:
Quote:
And your code worked like a charm. ![]() Heather
__________________
Thank you! |
|||||||||
#6
|
|||||||||
|
|||||||||
![]() I'm wondering if it might be somewhere in this mess (from home.tpl)
Quote:
__________________
Thank you! |
|||||||||
#7
|
|||||||||
|
|||||||||
![]() without seeing the site itself its hard to say.
probably in head.tpl
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. ![]() ![]() |
|||||||||
#8
|
|||||||
|
|||||||
![]() 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.
|
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|