• Resolved patriciava

    (@patriciava)


    With the YITH Affiliates Plugin enabled, I cannot add background videos in the divi builder. Instead of a video, I get only a gray loading screen.

    Once I disable the plugin, the video works fine.

    I don’t really see where these errors could come from:

    uncaught TypeError: Cannot set properties of undefined (setting ‘mejs’)

    uncaught ReferenceError: mejs is not defined

    uncaught TypeError: t.find(…).mediaelementplayer is not a function
    at window.et_pb_video_section_init (

    I’ve tried going back a few versions but problem remains… any ideas?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter patriciava

    (@patriciava)

    Ok, I found a workaround and disabled the YITH js files (with AssetCleanup) on this particular page.

    Not ideal if I wanted to use background videos for the shop, but it works for now.

    Plugin Support Juan Coronel

    (@juaancmendez)

    Hello there,
    we hope you’re doing well!

    In order to fix that, try adding the following code in the functions.php file of your active child theme:

    if ( ! function_exists( 'yith_wcaf_dequeue_custom' ) ) { 
        function yith_wcaf_dequeue_custom() {
            $page = yith_wcaf_is_affiliate_dashboard_page();
            if ( ! is_account_page() || ! $page ) {
                wp_dequeue_script( 'yith-wcaf-shortcodes' );
            }  
        }  
        add_action( 'wp_enqueue_scripts', 'yith_wcaf_dequeue_custom', 100 );
    }

    Check it out and tell us if it works well for you, please.

    Have a nice day!

    Thread Starter patriciava

    (@patriciava)

    Worked like a charm! Thanks so much Juan!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Plugin conflict with Divi builder’ is closed to new replies.