mattloak
Member
Posted 2 years ago #
I added the following code to my functions.php file to remove the wp version number from my header but it didn't work.
remove_action('wp_head', 'wp_generator');
I disabled and emptied all caching, refreshed but its still there. Any ideas why I can't remove it?
blackcap
Member
Posted 1 year ago #
found this tread when searching for wp_generator..
I know the question was posted a long time ago..
But if others have the same problem then.....
In your themes header.php file look for something like this:
<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats please -->
the remove_action('wp_head', 'wp_generator'); only removes the meta tag when the wp_head() is called in header.php
hope this helps.