Page 1 of 1

how to make my custom slideshow display only on homepage;

Posted: Sun Oct 18, 2020 5:53 am
by chinedunzor
Hi everyone!
Still a fresh newbie and wanting to learn more. i am using the newest Opencart 3.0.3.6. I wanted to make the standard slide show image to be fullwidth then found it difficult so i decided to insert my own "DIV" containing images for my slide show in: catalogue/view/theme/default_theme/template/common/header.twig and also have inserted the script. so the slide show worked well with the script and it displays in all the pages of my website but i want it to display only in home page.

so my question is how to make the slideshow not to display in other pages but only in Homepage.
please can any one help me here?

this is the site codesandgrafix.com

Thanks in advance

Re: how to make my custom slideshow display only on homepage;

Posted: Sun Oct 18, 2020 9:34 am
by IP_CAM
Well, possibly by use of something like this linked below:
Event Manager for Opencart (create, edit, delete event actions)
https://www.opencart.com/index.php?rout ... n_id=29092
---
Or then, you would need to create a Module, to only be 'active' in a certain Section, like home.
Or write an OcMod or VqMod, to display your Code somewhere (top/bottom/etc.) in the Theme home.twig file.
And if you're not able to, you probably need a Pro, to do it for you... ;)
Good Luck! :D
Ernie

Re: how to make my custom slideshow display only on homepage;

Posted: Mon Oct 19, 2020 1:40 am
by chinedunzor
yes i have done it. it is now showing only on homepage. never thought it could be so simple.

Thank you IP_CAM for your time