I am using Magento 2.4.2. I have added recently viewed products widget in the product details page. Here I want to add slider using swiper. But slider is not working for recently viewed products. JS is loading before the html file.

Here is the file path where content is rendering for the section: [Vendor]/[Theme]//Magento_Catalog/web/template/product/list/listing.html

I have tried with this link as well. Magento 2 - How to apply Slick Slider to Recently Viewed Widget

But slider is not working for this section. When I added demo slider in the same page its working. But only for this recently viewed products section not working. How to do this? please suggest solution for this.

enter image description here


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.