• Resolved tomas.halo

    (@tomashalo)


    Hi there,
    I can’t integrate blocking of youtube videos in magnific popup and set the placeholder for that. Is there any workaround for this issue?

    Thanks a lot for assistance.

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor jarnovos

    (@jarnovos)

    Hi @tomashalo,

    Could you provide an URL to the Magnific Pop-up plugin?

    I found this: https://www.ads-software.com/plugins/wp-magnific-popup/, but I’m not sure if that is the correct one seeing as it was last updated 5 years ago.

    Just let me know!
    Kind regards,
    Jarno

    Thread Starter tomas.halo

    (@tomashalo)

    Hi Jarno,
    my implementation of magnific popup is via jquery script library, not a wordpress plugin: https://dimsemenov.com/plugins/magnific-popup/documentation.html#iframe-type

    Is there anything you can do about it?

    Kind regards
    Tomas

    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @tomashalo,

    The current behavior appears to be as expected: Complianz already blocks the YouTube scripts, until you click the placeholder in the slider/gallery.

    Only then are the third-party cookies from the YouTube service set, so they wait until consent is obtained in the Cookie Banner.

    Kind regards,
    Jarno

    Thread Starter tomas.halo

    (@tomashalo)

    Ok Jarno,
    Thanks for explanation.

    Kind regards
    Tomas

    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @tomashalo,

    A quick update: I just noticed that your custom integration named “yt-popup” adds the placeholders to the Youtube URL’s.

    Would it be possible to temporarily disable that yt-popup integration, and only activate the YouTube service integration + placeholder instead? (Integrations > Services)

    Then we can see what happens without the custom placeholder, and see the result with only the ‘default’ YouTube placeholder activated.

    Kind regards,
    Jarno

    Thread Starter tomas.halo

    (@tomashalo)

    Hi there,
    I that case nothing happened, I’ve tried it befeore. You can take a look at it now, it is set according to your request.

    Kind regards
    Tomas

    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @tomashalo,

    As the frames are loaded with JavaScript, our Cookieblocker can’t set a placeholder on the youtube frames. A possibility could be:

    – Hook into the cookie blocker with a filter to replace the href
    – With Javascript, set it back to the original format, after consent is given

    That would stop it from being opened until consent is provided. On consent the JavaScript should run that restores the href back to the original.

    Our lead developer has set this up in the below integration/MU-Plugin (upload as .PHP file to the folder /wp-content/mu-plugins).

    https://github.com/Really-Simple-Plugins/complianz-integrations/blob/master/magnific-popups.php

    It might require some adjusting (as we didn’t have an environment with Magnific Popup to test, at the moment).

    If you make any adjustments to the code that you feel should be included in this integration, feel free to reach out to us so we can update the code on GitHub.

    I hope it helps!
    Kind regards,
    Jarno

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to block youtube videos in magnific popup?’ is closed to new replies.