Jump to content

Make a module only for home page


godsone
 Share

Recommended Posts

Hi,

I have a module with something like jarousel with a special hook, i would like to make the hook appear only on home page.
Also i think the scripts from the module have a conflict with other scripts i have on my website, for example the lightbox doesn't work on product details.

Share this post


Link to post
Share on other sites

To display hook only on homepage put this if statement

{if $page_name != 'index'}
               {$YOUR_CUSTOM_HOOK}
{/if} 



For script check if there is already one in js\jquery folder.
Maybe you have two different version of same script.
Also check path to your script.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More