Archived topic
Woocommerce product gallery images
8 replies · Started by Dan on January 26, 2021
I do not see the product images.
I do see them in the site’s code, but the gallery seems to be off:
https://npure.ca/product/npure-dry-fogging-disinfection-device/
Any thoughts?
Thanks,
Dan
Hi there,
can you check for plugin conflicts - by temporarily disabling all plugins aside for GPP and Woo.
yes, just did that but still no go
Does the issue happen if you activate a twenty series WP themes to test?
Hi Leo, No, when switching to 2021 theme the gallery shows up correctly.
So I'm guessing it's something with the theme
See screenshot:
https://www.dropbox.com/s/45bfno24p4af7an/npure-gallery.wmv?dl=0
ok, I think I found the culprit.
I'm using a replace script loaded via an external js file.
If I deactivate it the gallery works.
This is the script:
jQuery(document).ready(function($){
$("p,h1,h2,h3,h4,h5,h6,li,dd,dt,a").each(function(){
var $this = $(this);
$this.html($this.html().replace(/(<sup>)?(®|®)(<\/sup>)?/gi, '<sup>®</sup>'));
});
});
Do you see anything that could cause the gallery not to work?
I'm not sure unfortunately - it's likely causing a javascript or jQuery error though.
Glad it's not a theme issue :)
me too, thanks for your help
No problem :)