Home Forums WoodMart support forum Youtube video not loading in category description.

Youtube video not loading in category description.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #447488

    lpsdlv
    Participant

    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

    #447618

    Artem Temos
    Keymaster

    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

    #448545

    lpsdlv
    Participant

    I deactivated all the unnecesary plugins and the issue still persisted.
    Admin login below

    #448560

    lpsdlv
    Participant

    The code snippets plugin is currently enabled, but I tested the issue with it disabled. When you access the site You can disable it.

    #448587

    Artem Temos
    Keymaster

    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);
    #448670

    lpsdlv
    Participant

    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 1 year, 9 months ago by lpsdlv.
    #448675

    Artem Temos
    Keymaster

    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

    #448682

    lpsdlv
    Participant

    Okay, thank you!

    #448749

    Artem Temos
    Keymaster

    You are always welcome. Feel free to contact us if you have any further questions.

Viewing 9 posts - 1 through 9 (of 9 total)

The topic ‘Youtube video not loading in category description.’ is closed to new replies.