Post by chinedunzor » Sun Oct 18, 2020 5:53 am

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

Newbie

Posts

Joined
Mon Oct 05, 2020 2:10 am

Post by IP_CAM » Sun Oct 18, 2020 9:34 am

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

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by chinedunzor » Mon Oct 19, 2020 1:40 am

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

Newbie

Posts

Joined
Mon Oct 05, 2020 2:10 am
Who is online

Users browsing this forum: No registered users and 189 guests