• Resolved sanctibrouwer

    (@sanctibrouwer)


    Hello,

    Great plugin. Thnx! However still some questions.
    [ redundant link removed ]
    As you can see even without accepting cookies, the video embed is still there. Same for maps on the contact page and homepage.

    In the integrations this is checked at services(diensten) youtube, google maps

    I also added:

    youtube.com,
    youtu.be,
    https://youtu.be

    into the URL’s of Iframes that should be blocked and even into the part of scripts that should be blocked.

    What am I doing wrong here? Any suggestion?

    ( I did notice when using conatctform7+captcha, the form was not submitted. You first had to allow cookies) So that is good thing. But for youtube/maps I don’t get it working

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Aert Hulsebos

    (@aahulsebos)

    Hi @sanctibrouwer,

    Could you let us know how you have implemented both? With a plugin, or page builder? We need to reproduce this to see why it doesn’t seem to work.

    Let me know, so we can help!

    regards Aert Hulsebos

    Thread Starter sanctibrouwer

    (@sanctibrouwer)

    With a page builder (bold builder)

    Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    Hi @sanctibrouwer, the problem seems to be that YouTube is not loaded directly, but after the pageload, using javascript. That is why the URL’s that are normally blocked by default do not work at this moment. The URL’s you added yourself are already part of the default block list.

    The trick is to find the javascript that loads the YouTube videos. This might be this script:
    /framework/js/video_shortcode.js
    or this one, which is loaded from core wp, so I would expect this one to be triggered by the previous one.

    mediaelement/mediaelement-and-player.min.js

    Can you try adding these in the script center?

    Plugin Author Aert Hulsebos

    (@aahulsebos)

    Hi @sanctibrouwer,

    Did @rogierlankhorst answer your question?

    Let me know!

    regards Aert

    Thread Starter sanctibrouwer

    (@sanctibrouwer)

    Great support. I tried, but this did not do the trick yet. However, I think I did that part wrong on my side. I will try again today/tomorrow and let you know the outcome

    Thread Starter sanctibrouwer

    (@sanctibrouwer)

    Hey,

    I added:

    framework/js/video_shortcode.js, mediaelement/mediaelement-and-player.min.js, into the part
    (delen van) URL’s of unieke delen van inline scripts van third party scripts en plugins die geblokkeerd moeten worden voor cookie toestemming.

    It is blocked now. However, even when I accept the cookies, it still does not load. So now it stays blocked.

    See: https://www.brouwerijegmond.nl/ons-verhaal/

    Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    I see two jquery errors, one from misc.js, and the other from
    mediaelement-migrate.min.js

    If the errors are caused because they depend on a script that is now blocked, you might be able to fix it by blocking these as well. Because the misc.js is from the theme, it is possible other things will break as well.

    It is also possible the scripts need to be activated in a certain order. In that case, we can declare a dependency. That is necessary if blocking the scripts above works, but still causes jquery errors.

    If the theme has the video scripts mixed too much with the core js functionality, you can also ask your theme developer to integrate with the Consent API (https://github.com/rlankhorst/wp-consent-level-api/), a new WP core proposal that offers a standardized framework for themes and plugins to check if consent is given for a certain purpose, and activate a script conditionally. Complianz will support the Consent API as of february.

    Thread Starter sanctibrouwer

    (@sanctibrouwer)

    Thanks for your reply. Adding these other 2 options did not solve the issue. I think I will try to just embed the video myself in stead of the theme options. Thanks for your support

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Youtube still visible. same for maps’ is closed to new replies.