![]() |
Show image on home page only
I added some code to my head.tpl that tells it to show a different header image for the home page. For the most part, this works well but there is one page that is showing the wrong image, and that is the newsletter signup confirmation page.
http://72.32.121.173/home.php?mode=subscribed&email=m%40b.com Does anyone know how I might alter this code to make this page show the right header image? Code:
{if $main ne "catalog" or $current_category.category ne ""}<img src="{$ImagesDir}/custom/logo.gif" alt="Tracy Porter" border="0" width="480" height="49" />{else}<img src="{$ImagesDir}/custom/logo_splash.gif" alt="Tracy Porter" border="0" width="480" height="49" />{/if} This store is V 4.1.2 |
Re: Show image on home page only
Flip the statement:
{if $main eq "catalog" and $current_category.category eq ""}<img src="{$ImagesDir}/custom/logo_splash.gif" alt="Tracy Porter" border="0" width="480" height="49" />{else} <img src="{$ImagesDir}/custom/logo.gif" alt="Tracy Porter" border="0" width="480" height="49" />{/if} |
Re: Show image on home page only
Thanks for the quick reply, Padraic. Even when I flip the code it still shows the wrong header on the newsletter confirmation page. *scratching head*
|
Re: Show image on home page only
How about this...
{if $main eq "catalog" and $current_category.category eq "" and $smarty.get.mode ne "subscribed"}<img src="{$ImagesDir}/custom/logo_splash.gif" alt="Tracy Porter" border="0" width="480" height="49" />{else} <img src="{$ImagesDir}/custom/logo.gif" alt="Tracy Porter" border="0" width="480" height="49" />{/if} |
Re: Show image on home page only
That did the trick! Thanks so much!! :)
|
All times are GMT -8. The time now is 11:21 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.