Shopify themes, liquid, logos, and UX
This is an accepted solution.
@niceeee there is a file global.js, you will find slider code in this file
try comment or delete these 4 lines and check slide.
this.addEventListener('mouseover', this.focusInHandling.bind(this)); this.addEventListener('mouseleave', this.focusOutHandling.bind(this)); this.addEventListener('focusin', this.focusInHandling.bind(this)); this.addEventListener('focusout', this.focusOutHandling.bind(this));
Hi @niceeee
You will need to modify the slideshow's JavaScript code in your Shopify theme.
It might be named "theme.js", "slideshow.js", or something similar. Locate the slideshow initialization code. It should look something like this:
```javascript
$('.slideshow').slick({
// options...
});
Add the `pauseOnHover: false` option to the slideshow settings.
$('.slideshow').slick({
// other options...
pauseOnHover: false,
});
Now, the slideshow should continue to auto-play even when the cursor is within the slideshow banner.
can't find the theme.js and slidershow.js, im using dawn theme
Can you look for the main.js and search for the following code:
this.sliderElement.flickity({
// options...
});
Add the `pauseOnHover: false` option to the Flickity settings.
this.sliderElement.flickity({
// other options...
pauseOnHover: false,
});
there is no main.js in my theme
@niceeee Instead of making me guess the names of each JavaScript file 🙂 could you please inform me of the specific JavaScript files present in your theme?
theme.liquid, base.css, slideshow.liquid and component-slideshow.css
If you need assistance in finding the JavaScript code responsible for the slideshow functionality, please share more details about the JavaScript files and any related code present in your theme. With more information, I can better guide you in locating and modifying the relevant code.
there is no javascript code in my theme cause its a dawn theme. it is full of .liquid files
There is JavaScript code embedded within your Liquid template files.
Can you send the liquid code via DM?
This is an accepted solution.
@niceeee there is a file global.js, you will find slider code in this file
try comment or delete these 4 lines and check slide.
this.addEventListener('mouseover', this.focusInHandling.bind(this)); this.addEventListener('mouseleave', this.focusOutHandling.bind(this)); this.addEventListener('focusin', this.focusInHandling.bind(this)); this.addEventListener('focusout', this.focusOutHandling.bind(this));
I have the same problem but I can't find any "slideshow" related lines in the "globle.js" file. :c
I am using the latest Dawn 13.0.1 version.
Please help me out with this, Thanks
Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024