Youtube video not loading in category description.
-
Hello,
I have put a Youtube video using HTML blocks inside the product category description. The problem I encounter, is that when the page is opened when going from one shop category to another ( I believe AJAX) the video is not loaded and the area appears blank. The video only appears after a page refresh.
See the page in private content
Hello,
Please, disable all plugins that are not related to our theme and provide us with your admin access. We will log in and check what is wrong there. You can leave only the following plugins that are required for our theme:
WoodMart core
WooCommerce
Elementor/WPBakery page builder
Thank you in advance
I deactivated all the unnecesary plugins and the issue still persisted.
Admin login below
The code snippets plugin is currently enabled, but I tested the issue with it disabled. When you access the site You can disable it.
Try to add the following code snippet to the Custom JS area in Theme Settings to fix this issue.
(function($) {
$(document).on('wdShopPageInit', function () {
if ( 'undefined' !== typeof elementorFrontend && $('.elementor-widget-video').length ) {
elementorFrontend.elementsHandler.runReadyTrigger($('.elementor-widget-video'));
}
});
})(jQuery);
Hello,
Thank you for the code privided. I tested and the code works with all the unnecesary plugins disabled.
Unfortunately after further checked I found that when the Complianz cookie plugin is enabled the issue happens again. The Complianz plugin blocks the youtube video from displaying ( it displays a placeholder) if marketing cookies are not enabled.
Is it possible to make the custom JS work with Complianz?
-
This reply was modified 2 years, 5 months ago by
lpsdlv.
Hello,
It looks like a different problem and probably it is how the plugin works. You need to consult with the plugin’s developer for help on this matter. We don’t have a custom JS to fix this.
Kind Regards
You are always welcome. Feel free to contact us if you have any further questions.
The topic ‘Youtube video not loading in category description.’ is closed to new replies.