• Resolved Oaz

    (@oaz)


    Hello there,

    I would like to use your plugin on a website built with elementor and Astra theme.

    I am using an i-frame for a Vimeo video, hence the video does not appear at all before user accepts vimeo cookies ((accept cookie in the frame itself instead of an image of the vido to be launched) ). Is there a way to avoid this blockage ? i could not find an answer in your documentation.

    Thanks for your help

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

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

    (@aahulsebos)

    Hi @oaz ,

    Please read the following article. https://complianz.io/hook-a-function-or-method-to-a-specific-filter-action/

    You can use a must use plugin as well. Please search for MU plugins on our website for documentation.

    Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    The code below will unblock vimeo.

    /**
     * Filter urls for iframe elements or their contents which should be blocked
     * @param array $iframe_tags
     * @return array $iframe_tags
     */
    function cmplz_edit_known_iframe_tags($iframe_tags){
        if (($key = array_search('player.vimeo.com', $iframe_tags)) !== false) {
            unset($iframe_tags[$key]);
        }
        return $iframe_tags;
    }
    add_filter('cmplz_known_iframe_tags', 'cmplz_edit_known_iframe_tags');
    Thread Starter Oaz

    (@oaz)

    Thank you very much for these informations, I created a mu-plugin for this code and it works.

    Have a nice day

    Thread Starter Oaz

    (@oaz)

    Hello,

    I upgraded your plufin this morning (to 3.2.1), and the solution does nt work anymore, the vimeo video needs to be clicked again to display.

    What should I change in the mu plugin ?

    Thanks for your help

    Plugin Author Aert Hulsebos

    (@aahulsebos)

    Hi @oaz,

    You can go to Complianz > Integrations > Services and disable Vimeo. This should do the trick.

    Regards Aert

    Thread Starter Oaz

    (@oaz)

    Tanks very much, it does work. I do not need the mu-plugin code then ?

    Plugin Author Aert Hulsebos

    (@aahulsebos)

    Hi @oaz,

    You’re right. You can delete the file in the mu-plugin folder. We will revise our documentation. Thanks!

    regards Aert

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘unblock i-frame’ is closed to new replies.