catalog/view/theme/default/template/extension/module/slideshow.twig
FWIW - File shows in the theme editor as well, so maybe some issue on your setup.
FWIW - File shows in the theme editor as well, so maybe some issue on your setup.
Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!
found it, than kyou
i changed the timing to 9500, but it doesnt seem to change after saving it.
so i go back to edit it again, and under extension/module/slideshow.twig
the changes made revert back to 2500
i edit it again, click save, it says it saved, but when i go out and back in, the changes arent saved again.
and the home page slideshow doesnt change either
this is what I changed it to (i really want it static)
autoplay: 9500,
i changed the timing to 9500, but it doesnt seem to change after saving it.
so i go back to edit it again, and under extension/module/slideshow.twig
the changes made revert back to 2500
i edit it again, click save, it says it saved, but when i go out and back in, the changes arent saved again.
and the home page slideshow doesnt change either
this is what I changed it to (i really want it static)
autoplay: 9500,
You are using the theme editor, correct?
You have to reload Design -> Theme Editor the changes should be under Theme History. If you are going back to the file again the changes won't show.
If that's not the issue my guess is mod_security blocking the request, because it has script tags or some other issue.
You have to reload Design -> Theme Editor the changes should be under Theme History. If you are going back to the file again the changes won't show.
If that's not the issue my guess is mod_security blocking the request, because it has script tags or some other issue.
Last edited by sw!tch on Thu Jan 16, 2020 6:32 am, edited 1 time in total.
Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!
If you want a static image .. create a custom html and add it to
admin => layouts => home => content top (or wherever you want it) - the slideshow and the banner are very heavy ..
Alternatively I have two modules the first is extremely useful generally for both simple and complex additions to your site and the second will do what you want simply and responsively as well as simply adding various banners on specific pages.
https://www.opencart.com/index.php?rout ... n_id=33048
https://www.opencart.com/index.php?rout ... n_id=26852
admin => layouts => home => content top (or wherever you want it) - the slideshow and the banner are very heavy ..
Alternatively I have two modules the first is extremely useful generally for both simple and complex additions to your site and the second will do what you want simply and responsively as well as simply adding various banners on specific pages.
https://www.opencart.com/index.php?rout ... n_id=33048
https://www.opencart.com/index.php?rout ... n_id=26852
DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.
https://www.youtube.com/watch?v=zXIxDoCRc84
I am using theme editor, making the changes, reload it, and the changes are there as you indicated in history. (I changed the timing to 9500)
But I reload the home page and the the rotation timing doesnt change to 9500, it is at the old default 2500
But I reload the home page and the the rotation timing doesnt change to 9500, it is at the old default 2500
sw!tch wrote: ↑Thu Jan 16, 2020 6:14 amYou are using the theme editor, correct?
You have to reload Design -> Theme Editor the changes should be under Theme History. If you are going back to the file again the changes won't show.
If that's not the issue my guess is mod_security blocking the request, because it has script tags or some other issue.
Cleared your theme and SASS cache? Its in the dashboard small COG icon top right. You need to refresh your modification cache. Clear your browser cache as well.
Personally I would just override twig templates in your custom theme directory and not use that editor.. Your controller will inherit the template from your active theme directory. Easier to do this way.
Personally I would just override twig templates in your custom theme directory and not use that editor.. Your controller will inherit the template from your active theme directory. Easier to do this way.
Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!
At the bottom of the slideshow twig file is this text:
<script type="text/javascript"><!--
$('#slideshow{{ module }}').swiper({
mode: 'horizontal',
slidesPerView: 1,
pagination: '.slideshow{{ module }}',
paginationClickable: true,
nextButton: '.slideshow .swiper-button-next',
prevButton: '.slideshow .swiper-button-prev',
spaceBetween: 30,
autoplay: 2500,
autoplayDisableOnInteraction: true,
loop: true
});
//--></script>
The last line loop:true
Change true to false so it reads loop:false
Then clear cache. That works. When you put the cursor over the image you still see the left/right arrows, and the black dot is permanently there. But of you dont mind those then this is a quick fix.
<script type="text/javascript"><!--
$('#slideshow{{ module }}').swiper({
mode: 'horizontal',
slidesPerView: 1,
pagination: '.slideshow{{ module }}',
paginationClickable: true,
nextButton: '.slideshow .swiper-button-next',
prevButton: '.slideshow .swiper-button-prev',
spaceBetween: 30,
autoplay: 2500,
autoplayDisableOnInteraction: true,
loop: true
});
//--></script>
The last line loop:true
Change true to false so it reads loop:false
Then clear cache. That works. When you put the cursor over the image you still see the left/right arrows, and the black dot is permanently there. But of you dont mind those then this is a quick fix.