Some people remove the tags from the header for security reasons, as I've described above. But you do not need to bother removing this tag if you are one of the bloggers who actively update the wordpress version. WordPress will make improvements over the previous version every time updated. But if you are a big fan of the old version of wordpress, and do not want to update your wordpress version, then you can remove it from your header theme by following this tutorial.
There are several ways to remove wordpress meta version from your header, one is by removing the meta tag from the header, or by using a script in the file function. There are three methods to be able to remove the wordpress version from your header.
Method 1: Open your header.php file, then find and delete the following code.
<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" />
Method 2: Open your functions.php and add the following code.
remove_action('wp_head', 'wp_generator');
But of the two methods above, it does not completely eliminate wordpress version of your blog. Wordpress version you will still be known by others, because wordpress version still printed in your rss. If you are already using one of the methods above, please check your rss blog, it will look like the screenshot below.
Method 3: In order for you to completely remove your WordPress version number from both your head file and RSS feeds, you will need to add the following function to your functions.php file.
function my_remove_version() { return ''; } add_filter('the_generator', 'my_remove_version');
Now your wordpress version completely removed from your blog, and i think nobody will found out. If there are any questions please comment below, I will be happy to answer your questions.
0 comments:
Post a Comment