Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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?

    #1346611

    Hey giorgioctl,

    Where exactly are you looking to add that code?

    Best regards,
    Rikard

    #1347245

    Hi, 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/

    #1347303

    Hi,

    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,
    Rikard

    #1347498

    Hi 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?

    #1347888

    Hi,

    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

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.