Archived topic
Remove wordpress generator meta tag
3 replies · Started by Yurik on June 9, 2020
Hi, do I need to use any other way to make disappear the WP version on my site with GP premium theme?
I have WP version 5.4.1 and used the remove_action('wp_head', 'wp_generator'); at the end of functions.php file (via wp admin), but it still appears the meta tag with current wp version at meta name=”generator” content=”WordPress 5.4.1
Please can you advice how to solve this?
Thanks
Hi there,
That's not something controlled by the theme.
Maybe try both function here?
https://www.wpbeginner.com/wp-tutorials/the-right-way-to-remove-wordpress-version-number/
Please make sure the code is added using one of these methods:
https://docs.generatepress.com/article/adding-php/
Do not edit the parent theme's function.php.
Hi Leo,
Al understood. Thanks for your answer!
Cheers
No problem :)