WPIntell

Source evidence

Login Page iFrame Issues

Branda – White Label & Branding, Free Login Page Customizer · support · 2024-01-04T16:30:00+00:00

mixedsentiment
highseverity
0.95relevance
7replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

3 / 22 rows with source links

13.6% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

19 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
boneal resolved
Hello, I am having issues with adding <iframe> to the “Message” section of the frontend login screen. This <iframe> does work on another website we have that has an older version of Branda, but this iframe is important because our employees use it as a support video for logging in. Is there any way to fix this? Hi @boneal , I hope you are doing well today! With the latest version of Branda, all of the scripts and tags are removed in order increase security and prevent related issues. Please try the following code if you want to use the tag for Branda > Admin Area > Admin Message. <?php add_filter( 'ub_get_value', function( $data, $module, $section, $name ) { if ( $module != 'admin-message' && $name != 'message_meta' ) { return $data; } add_filter( 'wp_kses_allowed_html', function( $tags, $context ) { $tags[ 'iframe' ] = array( 'src' => array(), 'style' => true, 'width' => array(), 'height' => array(), 'title' => array(), 'frameborder' => array(), 'allow' => array(), ); return $tags; }, 10, 2 ); return $data; }, 10, 4 ); You can find more information below on how to use mu-plugins. https://wpmudev.com/docs/using-wordpress/installing-wordpress-plugins/#installing-mu-plugins and https://wordpress.org/support/article/must-use-plugins/ Kind regards, Zafer Hello @boneal , I hope the PHP snippet helped resolving the issue. We’re going to mark the thread as resolved. Feel free to reply if you still have any questions. Best Regards, Dmytro Hello @wpmudevsupport16 , This PHP snippet did work for the admin side, but it did not work for the user side login page. Are there any work arounds for that? Let me know and thank you! Hi @boneal , Hope this message finds you well. This mu-plugin is for Branda >> Front-end ->> Email >> Login Screen >> Content >> Message add_filter( 'ub_get_value', function( $data, $module, $section, $name ) { if ( $module != 'login-screen' && $section != 'content' && $name != 'message' ) { return $data; } add_filter( 'sanitize_text_field', function( $filtered, $str ) { $filtered = wp_kses_post($str); return $filtered; }, 10, 2 ); return $data; }, 10, 4 ); Let us know the results. Best regards, Laura Hello @wpmudevsupport3 , Thank you for your response! I adding this snippet into the message input, but to no success. The end goal is adding 2 iframe tags to the login screen, where would the tags go in this snippet? Hi @boneal Thank you for your response! I adding this snippet into the message input I’m sorry if we caused some confusion but that’s not where the code goes. This code (that Laura shared) should be added as Must Use plugin, just like the previously shared code https://wpmudev.com/docs/using-wordpress/installing-wordpress-plugins/#installing-mu-plugins Once it’s there, then you’d put the HTML – your iframe tags – to the “Branda >> Front-end ->> Email >> Login Screen >> Content >> Message”. Best regards, Adam @wpmudev-support8 Got it, thank you!

Comments

7 shown
Jair – WPMU DEV Support 2024-01-04T17:07:00+00:00

Hi @boneal , I hope you are doing well today! With the latest version of Branda, all of the scripts and tags are removed in order increase security and prevent related issues. Please try the following code if you want to use the tag for Branda > Admin Area > Admin Message. <?php add_filter( 'ub_get_value', function( $data, $module, $section, $name ) { if ( $module != 'admin-message' && $name != 'message_meta' ) { return $data; } add_filter( 'wp_kses_allowed_html', function( $tags, $context ) { $tags[ 'iframe' ] = array( 'src' => array(), 'style' => true, 'width' => array(), 'height' => array(), 'title' => array(), 'frameborder' => array(), 'allow' => array(), ); return $tags; }, 10, 2 ); return $data; }, 10, 4 ); You can find more information below on how to use mu-plugins. https://wpmudev.com/docs/using-wordpress/installing-wordpress-plugins/#installing-mu-plugins and https://wordpress.org/support/article/must-use-plugins/ Kind regards, Zafer

Dmytro – WPMU DEV Support 2024-01-14T15:34:00+00:00

Hello @boneal , I hope the PHP snippet helped resolving the issue. We’re going to mark the thread as resolved. Feel free to reply if you still have any questions. Best Regards, Dmytro

boneal 2024-01-16T13:21:00+00:00

Hello @wpmudevsupport16 , This PHP snippet did work for the admin side, but it did not work for the user side login page. Are there any work arounds for that? Let me know and thank you!

Williams – WPMU DEV Support 2024-01-18T21:42:00+00:00

Hi @boneal , Hope this message finds you well. This mu-plugin is for Branda >> Front-end ->> Email >> Login Screen >> Content >> Message add_filter( 'ub_get_value', function( $data, $module, $section, $name ) { if ( $module != 'login-screen' && $section != 'content' && $name != 'message' ) { return $data; } add_filter( 'sanitize_text_field', function( $filtered, $str ) { $filtered = wp_kses_post($str); return $filtered; }, 10, 2 ); return $data; }, 10, 4 ); Let us know the results. Best regards, Laura

boneal 2024-01-24T16:45:00+00:00

Hello @wpmudevsupport3 , Thank you for your response! I adding this snippet into the message input, but to no success. The end goal is adding 2 iframe tags to the login screen, where would the tags go in this snippet?

Laura – WPMU DEV Support 2024-01-25T13:59:00+00:00

Hi @boneal Thank you for your response! I adding this snippet into the message input I’m sorry if we caused some confusion but that’s not where the code goes. This code (that Laura shared) should be added as Must Use plugin, just like the previously shared code https://wpmudev.com/docs/using-wordpress/installing-wordpress-plugins/#installing-mu-plugins Once it’s there, then you’d put the HTML – your iframe tags – to the “Branda >> Front-end ->> Email >> Login Screen >> Content >> Message”. Best regards, Adam

boneal 2024-01-31T18:37:00+00:00

@wpmudev-support8 Got it, thank you!