Support Forum › Support Forum › GDPR Cookie Compliance › Iframe blocked all except for home page
- AuthorPosts
- PremiumDecember 23, 2021 @ 2:38 pm
Hello, in this webiste I’ve blocked iframe with code in functions.php
add_filter( ‘the_content’, array( ‘Moove_GDPR_Addon_Actions’, ‘gdpr_block_content_iframes’ ), 100, 1 );
I can see that it works well in blog pages but home (that is make with Genesis – widget) shows YouTube video always. Also if I refuse cookies.
I’ve put also shortcode aroud the iframe in the widget, but it doesn’t work.
I’ve test the same functions in another web made with the same template and works well in home. I can’t find a solution for this website.
Can you help me please? Thank you, Laura
PremiumDecember 30, 2021 @ 9:41 amI’ve solved the problem. Widget in homepage MUST be “TEXT” type and not html type. Putting [gdpr_iframe_blocker]this tag[/gdpr_iframe_blocker] in a Text type Widget, iframe are blocked. Putting the same code in html Widget doesn’t work.
Moove Agency
December 30, 2021 @ 2:26 pmHi Laura,
That’s great to hear that you manage to find the solution!
I’ll close this ticket now but feel free to raise a new ticket any time you need help.
Hope this helps.
- AuthorPosts
The topic ‘Iframe blocked all except for home page’ is closed to new replies.