Solved

Slideshow problem

Mcosta
New Member
4 0 0

Hello to the entire community, I have a problem with my website. Specifically, when the page is loading, in some cases the slideshow does not load. Can anyone help me?

 

 

Accepted Solution (1)
ThePrimeWeb
Shopify Partner
2093 600 468

This is an accepted solution.

I just updated the code above, copy that instead.

Was I helpful?

Buy me a coffee

🙂

Need help with your store? contact@theprimeweb.com or check out the website
Check out our interview with Shopify!

View solution in original post

Replies 6 (6)

ThePrimeWeb
Shopify Partner
2093 600 468

Hey @Mcosta,

 

Can you share the link to your store please? Thanks!

Was I helpful?

Buy me a coffee

🙂

Need help with your store? contact@theprimeweb.com or check out the website
Check out our interview with Shopify!
Mcosta
New Member
4 0 0

Hello @ThePrimeWeb 

 

here the URL:   sensitiva.biz

ThePrimeWeb
Shopify Partner
2093 600 468

Hey @Mcosta,

 

Go to your theme's "Edit Code" Option, then in the search bar type "theme.liquid"
Above the tag "</body>" tag paste the following. Screenshot attached for reference.

 

 

<script>
document.addEventListener('DOMContentLoaded', function () {
    try {
        setTimeout(() => {
    document.querySelector('.slick-list').style.height = document.querySelector('.slick-slide').offsetHeight + 'px'
},900)
    } catch {}
});
</script>

 

 

 

Screenshot for reference

ThePrimeWeb_0-1712159659346.png

 

Was I helpful?

Buy me a coffee

🙂

Need help with your store? contact@theprimeweb.com or check out the website
Check out our interview with Shopify!
Mcosta
New Member
4 0 0

Screenshot 2024-04-03 180021.png

 Just did it but it seems is not working

 

ThePrimeWeb
Shopify Partner
2093 600 468

This is an accepted solution.

I just updated the code above, copy that instead.

Was I helpful?

Buy me a coffee

🙂

Need help with your store? contact@theprimeweb.com or check out the website
Check out our interview with Shopify!
Mcosta
New Member
4 0 0

Thank you, even if is not perfect it seems to make the page work correctly! 

 

Thank you!