Title: Login Page iFrame Issues
Last modified: January 4, 2024

---

# Login Page iFrame Issues

 *  Resolved [boneal](https://wordpress.org/support/users/boneal/)
 * (@boneal)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/login-page-iframe-issues/)
 * 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?

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Support [Jair – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport15/)
 * (@wpmudevsupport15)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/login-page-iframe-issues/#post-17318445)
 * Hi [@boneal](https://wordpress.org/support/users/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.
 *     ```wp-block-code
       <?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](https://wpmudev.com/docs/using-wordpress/installing-wordpress-plugins/#installing-mu-plugins)
   and[https://wordpress.org/support/article/must-use-plugins/](https://wordpress.org/support/article/must-use-plugins/)
 * Kind regards,
   Zafer
 *  Plugin Support [Dmytro – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport16/)
 * (@wpmudevsupport16)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/login-page-iframe-issues/#post-17342185)
 * Hello [@boneal](https://wordpress.org/support/users/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
 *  Thread Starter [boneal](https://wordpress.org/support/users/boneal/)
 * (@boneal)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/login-page-iframe-issues/#post-17347486)
 * Hello [@wpmudevsupport16](https://wordpress.org/support/users/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!
 *  Plugin Support [Williams – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport3/)
 * (@wpmudevsupport3)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/login-page-iframe-issues/#post-17355387)
 * Hi [@boneal](https://wordpress.org/support/users/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
 *  Thread Starter [boneal](https://wordpress.org/support/users/boneal/)
 * (@boneal)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/login-page-iframe-issues/#post-17370061)
 * Hello [@wpmudevsupport3](https://wordpress.org/support/users/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?
 *  Plugin Support [Laura – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support8/)
 * (@wpmudev-support8)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/login-page-iframe-issues/#post-17372690)
 * Hi [@boneal](https://wordpress.org/support/users/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](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
 *  Thread Starter [boneal](https://wordpress.org/support/users/boneal/)
 * (@boneal)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/login-page-iframe-issues/#post-17388423)
 * [@wpmudev-support8](https://wordpress.org/support/users/wpmudev-support8/) Got
   it, thank you!

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Login Page iFrame Issues’ is closed to new replies.

 * ![](https://ps.w.org/branda-white-labeling/assets/icon-256x256.gif?rev=3407049)
 * [Branda – White Label & Branding, Free Login Page Customizer](https://wordpress.org/plugins/branda-white-labeling/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/branda-white-labeling/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/branda-white-labeling/)
 * [Active Topics](https://wordpress.org/support/plugin/branda-white-labeling/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/branda-white-labeling/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/branda-white-labeling/reviews/)

 * 7 replies
 * 5 participants
 * Last reply from: [boneal](https://wordpress.org/support/users/boneal/)
 * Last activity: [2 years, 4 months ago](https://wordpress.org/support/topic/login-page-iframe-issues/#post-17388423)
 * Status: resolved