![]() |
Want to show different banner on Home page and other pages.
I want to show my own banner on Home page and Google banners on all other pages.
I know it will require an if condition and a veriable to catch link. I am giving down an idea but if someone can give me exact code needed. variable = a a = get current link if ( a = homepage or a = home.php ) { show my own banner (My HTML Code)} else { show google banner (Google Adsense Code)} Here I use or in if condition because when you simply open the domain example http://www.soft-reseller.com you will not find any file name in the end and usually it is index.html but what xcart uses I dont know. Regards |
Re: Want to show different banner on Home page and other pages.
{if $main eq "catalog" and $current_category.category eq ""}
{ HOME PAGE show my own banner (My HTML Code)} {else} { ALL OTHER PAGES show google banner (Google Adsense Code)} {/if} |
Re: Want to show different banner on Home page and other pages.
Quote:
Hello Thanks Pauldodman you understand what I want and we have done the job and got the results we want. We put the code {if $main eq "catalog" and $current_category.category eq ""} {include file="addons/banners/col/banner_1.tpl"} {else} {include file="addons/banners/col/google_banner.tpl"} {/if} Can see on our site http://www.soft-reseller.com Thanks again and regards |
All times are GMT -8. The time now is 05:25 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.