Support » Plugin: The SEO Framework » The SEO Framework compatible with Password Protected

  • Resolved Diana


    Hi all!

    I am curious about asking if it could be possible that The SEO Framework can be compatible with the Password Protected plugin, the only serious plugin that allows password-protect a full WordPress site.

    When The SEO Framework is active, a brilliant “Homepage Settings” tab is in the SEO settings of the site.

    But when Password Protected is active, these settings do not apply to the homepage that generates the plugin, which contains basically a password form. I would love to control the SEO of this homepage, as I would like it to be indexed and have all the info needed for search engines, while the rest of the site is protected.

    Thank you very much!

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Sybre Waaijer



    Implementing your request would require some custom coding. This will do the trick:

    add_action( 'login_enqueue_scripts', function() {
    	// Allow indexing.
    	remove_action( 'password_protected_login_head', 'wp_no_robots' );
    	// Output TSF meta tags.
    	if ( function_exists( 'the_seo_framework' ) ) {
    		add_action( 'password_protected_login_head', [ the_seo_framework(), 'html_output' ] );
    } );

    I believe this works in a theme’s functions.php file, but I recommend adding it to a plugin for easier maintenance. Please refer to this guide on where to place filters/actions:

    I hope this helps 🙂 Cheers!



    Yes! It helps! Thank you very much! 🙂

    Plugin Support Pierre LeBaux


    Hey Diana, I hope your weekend is going well ツ If you do enjoy TSF and our support, please consider tossing us a favourable review:
    Takes a minute and helps us a lot! Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.