Support Forum › Support Forum › GDPR Cookie Compliance › IFrame Blocker button colors wrong
- AuthorPosts
- PremiumDecember 10, 2021 @ 10:14 am
Hi,
I have blue color buttons in the cookie banner. When using the IFrame Blocker with content [accept]Accept[/accept] [setting]Settings[/setting], in blocked content message these buttons are displayed in green color. In the Blocked iframe example they are shown correctly with blue buttons. But on the web site they are still green.
Is this a bug or where can it be set?
PremiumDecember 10, 2021 @ 4:24 pmI also encountered, that switching lanuage on site “contact” between German and English does not display the correct IFrame Blocker message. It always shows the German version, although an english version is defined. We use WPML for support of multi language.
Moove Agency
December 21, 2021 @ 10:09 amHi Sebastian,
Thanks for using our plugins.
We found the issue with iFrame styles, and this is fixed in our latest plugin release.
For WPML language inside iFrame, we cant replicate this issue, the iframe is working fine for us.
However, we noticed this issue in the past when the WPML language variable is changed by theme, or a plugin, and the iFrame blocker can’t recognise the correct language code.
For this reason, we created a hook that can help you solve this issue. You can add this to your functions.php:
add_filter('gdpr_iframe_new_src_filter', 'wpml_gdpr_iframe_new_src_filter', 10, 2); function wpml_gdpr_iframe_new_src_filter( $new_src, $iframe_src ) { $gdpr_options = new Moove_GDPR_Content(); $wpml_lang = $gdpr_options->moove_gdpr_get_wpml_lang(); if ( $wpml_lang ) : $new_src = add_query_arg( 'lang', str_replace( '_', '', $wpml_lang ), $new_src ); endif; return $new_src; }
Hope this helps.
- AuthorPosts
The topic ‘IFrame Blocker button colors wrong’ is closed to new replies.