![]() |
Link to Hosting website - on home page only
Hi,
I made a deal with my web hosting company to reduce my hosting charge. The deal is that I place a link (small advert really with a hyperlink) to their website on my website. They have requested the link only appears on my home page. How can I do this? I have learnt a lot about x-cart in the last three during the set up period - the website only went live a month ago, but this has got me stumped. I have the ad_banner module installed on my website, but this doesn't have the option to restrict the advert to the home page only. Any help appreciated. |
Use this:
Code:
{elseif $main eq "catalog" and $current_category.category eq ""}[img]{$ImagesDir}/hostlogo.jpg[/img]{/if} Be sure to put the host's logo in skin1/images. |
Thank you very much. I changed the "elseif" code to "if" and everything worked great. I placed the code in the "bottom.tpl" file.
Thanks once again. |
Oops...sorry...pulled that code off home_main.tpl and forgot to get rid of the else. Glad you figured it out :)
|
All times are GMT -8. The time now is 10:28 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.