HOLY MOLY! Meta tags, you know those things that help with Search Engine Optimization (SEO) and make a website’s content understandable to search engines, can actually be REMOVED from WordPress?! Can you even imagine? Well, believe it or not, there are actually three different ways to do it! Are you ready for this? Let’s dive in!
Method One: The Plugin Method
Okay, so get this: the EASIEST way to remove meta tags from WordPress is actually by using a plugin! Shocking, right? There are a few plugins that allow you to customize your website’s meta tags, like Yoast SEO and All in One SEO Pack. Here’s how to remove meta tags using Yoast SEO:
Step One: Install Yoast SEO
If you don’t already have Yoast SEO installed on your website, you can get it from the WordPress plugin repository or install it through the Plugins page on your WordPress dashboard. Pretty simple so far, huh?
Step Two: Go to the Yoast SEO Dashboard
Once you’ve installed and activated Yoast SEO, head to the Dashboard page under the SEO tab on your WordPress dashboard.
Step Three: Click on the Search Appearance Tab
Over on the left-hand side of the Dashboard page, click on the “Search Appearance” tab to access the different meta tags and information that are displayed in search results.
Step Four: Remove that Meta Tag!
While you’re still in the Search Appearance menu, click on the “Content Types” tab to access the various content types on your website. From there, select the content type for which you’d like to remove the meta tag; for example, if you want to remove the meta description for a blog post, choose the “Posts” option.
After that, scroll down to the “Meta Description” section and click on the “Enabled” switch to turn it off. This will effectively remove the meta description tag for that content type. Voila!
Step Five: Save Your Changes
Before you go, don’t forget to save your changes! And there you have it: with Yoast SEO, you’ve successfully removed a meta tag!
Note: It’s also possible to achieve the same result using other SEO plugins like All in One SEO Pack.
Method Two: The Code Editing Method
Now, here’s a method that requires a little more technical know-how: if you don’t want to use a plugin or need more control over your website’s meta tags, you can remove them through your theme’s code. Here’s how:
Step One: Navigate to Your WordPress Dashboard
Log in to your WordPress dashboard and navigate to Appearance > Editor.
Step Two: Edit the Theme Functions File
On the Editor page, select the “functions.php” file from the right-hand side of the page. This is where you can modify the functions of your WordPress theme.
Step Three: Add the Code
Add the following code to the file to remove the meta description tag:
remove_action( ‘wp_head’, ‘wp_description’ );
This code removes the “wp_description” hook, which is responsible for adding the meta description tag to your website’s header. Nifty, huh?
If you want to remove other meta tags, like the meta keywords tag or Open Graph tags, you can add similar code to the “functions.php” file.
Step Four: Save Changes
After adding the code, click on the “Update File” button to save your changes.
Method Three: The Plugin Method, Part Two
If you’re not comfortable editing your theme’s code but still want to remove meta tags, don’t worry! There’s still hope for you yet! You can use a plugin like Head & Footer Scripts. Here’s how:
Step One: Install the Head & Footer Script Plugin
Install and activate the Head & Footer Scripts plugin from the WordPress plugin repository.
Step Two: Go to the Plugin Settings
Navigate to the plugin settings page by going to Settings > Head and Footer Scripts on your WordPress dashboard.
Step Three: Remove the Meta Tag
In the “Header Scripts” section, delete the code that corresponds to the meta tag you want to remove. Easy peasy!
For example, if you want to remove the meta description tag, find the following code in the “Header Scripts” section: