Search Knowledge Base by Keyword

Changing or removing the WP 2FA plugin logo from the 2FA wizard

You are here:

To configure and use two-factor authentication, your users or you need to use the 2FA wizard in the WP 2FA plugin. The 2FA wizard shipped with the plugin is branded, i.e. it has the plugin logo, as shown in the below screenshot.

The 2FA wizard in the WP 2FA plugin

If you would like to remove or change the plugin logo to rebrand the 2FA wizard, you can do so by using the below documented filter.

Changing the logo in the 2FA wizard

In most cases you may wish to replace the original logo with your own branding. To do this simply add the following code snippet to your theme’s functions.php file or to your site-specific plugin:

add_filter( 'wp_fa_plugin_logo_wizard', function ( $html ) { $html = '<img src=”YOUR-IMAGE-URL”>'; return $html; }, 10, 1 );

As seen within the code above, the new logo is simply an “img” HTML item which you can modify as you wish – just replace the src URL with the image you wish to use and your all set.

Removing the logo from the 2FA wizard

If you wish to remove the logo and have a plain 2FA wizard,  you may do so by using the same filter, but this time leave the HTML string blank, as per the below:

add_filter( 'wp_fa_plugin_logo_wizard', function ( $html ) { $html = ''; return $html; }, 10, 1 );

In turn this will remove the logo and leave you with a non-branded wizard, as per the below screenshot.

The 2FA wizard without the plugin logo