• Hello,
    I’m trying do usa a youtube-nocookie.com/embed video background for a section block, without success.
    This snippet works for getwid/video-popup, core/embed but not for getwid/section, perhaps because of the use of Youtube api.

    function csr_render_block( $block_content, $block ) {

    if ( $block[‘blockName’] === ‘getwid/video-popup’ || $block[‘blockName’] === ‘getwid/section’ || $block[‘blockName’] === ‘core/embed’ ) {
    // replace YT embed with https://www.youtube-nocookie.com/embed
    $block_content = preg_replace(‘/youtube\.com\/embed/i’, ‘youtube-nocookie.com/embed’, $block_content);
    $block_content = preg_replace(‘/youtube\.com\/watch/i’, ‘youtube-nocookie.com/embed’, $block_content);
    }
    return $block_content;
    }
    add_filter( ‘render_block’, ‘csr_render_block’, 99, 2 );

    Any suggestion?
    Thank you!

Viewing 1 replies (of 1 total)
  • Plugin Support eugenewhite

    (@eugenewhite)

    Hello there!

    I hope you’re doing well! Sorry for the late response.
    I would like to inform you that I escalated your request to our developers for them to check everything out. We let you know if we receive any updates on this matter.

Viewing 1 replies (of 1 total)
  • The topic ‘Section with youtube-nocookie video background’ is closed to new replies.