• Resolved BeeCee

    (@csigncsign)


    Hi,

    I have a WP site just for my internal use, not a public site, and I would like to remove the meta tags from the source code:

    <meta name="author" content="XXXXXXX" />
    <meta name="description" content="XXXXXX"/>

    Yes, I know that I can remove from the settings -> general the title of my site, but then I do not see it in the backend for the sake of clarity.

    I added this to my theme’s function.php but this has no effect when the maintenance mode is active:

    // remove unncessary header info
    function remove_header_meta() {
        remove_action('wp_head', 'author');
    	remove_action('wp_head', 'description');
    }
    add_action('init', 'remove_header_meta');

    Any solutions please for an active maintenance mode to delete these meta tags from source code?
    Thanks.

Viewing 1 replies (of 1 total)
  • Hello @csigncsign,

    That snippet has no effect because the plugin is not using the wp_head action.

    You should follow these steps:

    1. open your favorite FTP client
    2. go to /wp-content/plugins/wp-maintenance-mode/views/ and download maintenance.php locally
    3. edit the file however you want and rename it to wp-maintenance-mode.php
    4. upload wp-maintenance-mode.php to /wp-content/ or /wp-content/themes/{active_theme} – replace the {active_theme} placeholder with your active theme directory name


    George

    • This reply was modified 5 years, 7 months ago by George J.
Viewing 1 replies (of 1 total)
  • The topic ‘How to delete meta tags produced by this plugin?’ is closed to new replies.