-
AuthorPosts
-
March 30, 2022 at 10:58 am #1346548
To resolve a conflict with an a specific plugin, I need to re-initialize the image gallery on the product page every time our plugin updates it. To do this, I would need to insert a script using this JS trigger:
$(document).trigger( ‘yith_wccl_product_gallery_loaded’ );
how can I do?
March 30, 2022 at 4:32 pm #1346611Hey giorgioctl,
Where exactly are you looking to add that code?
Best regards,
RikardApril 5, 2022 at 11:11 am #1347245Hi, we’ve tried to insert the script ($(document).trigger( ‘yith_wccl_product_gallery_loaded’ );) directly in the footer or as an inline script (following the standard instructions https://developer.wordpress.org/reference/functions/wp_add_inline_script/) but it doesn’t work.
How can we do? Can you add it directly to the core of the theme, to create an integration with the plugin?
The plugin is https://yithemes.com/it/themes/plugins/yith-woocommerce-color-and-label-variations/
You can check it on the quebsite https://www.ctlelementi.it/catalogo/braciere-fogaru/April 5, 2022 at 6:17 pm #1347303Hi,
Thanks for the update. We’re not familiar with the plugin in question unfortunately, maybe the plugins developers could help you out with this? If you add the code to any of the core theme files, then it will be overwritten on updates.
Best regards,
RikardApril 7, 2022 at 9:29 am #1347498Hi Rikard
well, we’ve just asked to the plugin developer, and they told us to write this to you. The solution that we have wrote above came from them: we set a child theme, so how can we do? Can you give me another solution?April 11, 2022 at 3:32 am #1347888Hi,
Thank you for the update.
What should happen once the yith_wccl_product_gallery_loaded event is triggered? You may need to ask the plugin developer for additional assistance about this because we are not sure what is supposed to happen once the event is fired. Additional info from the plugin developers will help.
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.
