• Resolved marzamele

    (@marzamele)


    Hello, I have enabled the YouTube integration with the wizard and checked the placeholder but when I reload the page it does not block youtube cookies and the placeholder does not appear.

    Could you help me to solve this problem?
    Thank you very much

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Leon Wimmenhoeve

    (@leonwimmenhoeve)

    Hi @marzamele,

    I suspect that the video is not blocked because it is implemented using a plugin with which we haven’t integrated yet. Am I correct that you are using Tatsu Builder?

    Kind regards,
    Leon

    Thread Starter marzamele

    (@marzamele)

    yes that’s how it is

    Thread Starter marzamele

    (@marzamele)

    Hello,
    Would there be a way to solve this?
    Thanks

    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @marzamele,

    You can add the below filter as a .php file to the folder /wp-content/mu-plugins/ on your website to block the Tatsu script which initializes the YouTube API and causes these cookies to be set.

    Note that as this blocks the entire “helpers.min.js” script from Tatsu, it would cause other functionalities included in that JavaScript file to get blocked as well.

    <?php
    defined( 'ABSPATH' ) or die();
    
    /**
     * Block the helper script that loads the YouTube iFrame API
     * Add a placeholder to a div with class "tatsu-youtube-wrap"
     * @param $tags
     *
     * @return array
     */
    function cmplz_tatsu_script( $tags ) {
        $tags[] = array(
            'name' => 'tatsu-youtube',
            'category' => 'marketing',
            'placeholder' => 'default',
            'urls' => array(
                'tatsu/public/js/helpers',
            ),
            'enable_placeholder' => '1',
            'placeholder_class' => 'tatsu-youtube-wrap',
            'enable_dependency' => '0',
        );
        return $tags;
    }
    add_filter( 'cmplz_known_script_tags', 'cmplz_tatsu_script' );

    Kind regards,
    Jarno

    Thread Starter marzamele

    (@marzamele)

    Solved!
    perfect, thank you very much

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Not block youtube cookies’ is closed to new replies.