View Single Post
  #4  
Old 08-10-2016, 01:49 AM
  seyfin's Avatar 
seyfin seyfin is offline
 

X-Cart team
  
Join Date: May 2004
Posts: 1,223
 

Default Re: Need code help. jQuery banner to home page only.

As I can see, the banner code begins with these lines:

Quote:
<!-- ZOOM SLIDER HTML CONTENT START -->
<div id="bannerscollection_zoominout_21">

and ends with these lines:

Quote:
</div>
<p style="margin:0;padding:0;">&nbsp;</p>
<!-- ZOOM SLIDER HTML CONTENT END -->

So, if you need the banners to appear on the home page only, your code should be wrapped with the {if} ... {/if} smarty snippet - see example below:

Quote:
{if $main eq "catalog" and $current_category.category eq ""}
<!-- ZOOM SLIDER HTML CONTENT START -->
<div id="bannerscollection_zoominout_21">

... some skipped banner code ....

</div>
<p style="margin:0;padding:0;">&nbsp;</p>
<!-- ZOOM SLIDER HTML CONTENT END -->
{/if}
__________________
Sincerely yours,
Sergey Fomin
X-Cart team
Chief support group engineer

===

Check this out. Totally revamped X-Cart hosting
http://www.x-cart.com/hosting.html

Follow us:
https://twitter.com/x_cart / https://www.facebook.com/xcart / https://www.instagram.com/xcart
Reply With Quote