How to add a meta tag to your sites home page wordpress

New Page

How to Add Meta Tags in WordPress

Anna Fitzgerald

Anna Fitzgerald

Updated: May 10, 2022

Posted on June 29, 2020

When crawling your website, search engines attempt to collect as much information as possible. Besides looking at the title, headings, body text, URL, and other on-page SEO elements, search engines also look for data that is not visible to the front-end user. This data is known as meta tags.

Site%20owner%20adding%20meta%20tags%20in%20WordPress

According to Google, meta tags are another way for site owners to let search engines know about their sites. These tags can contain the meta description, author, document type, language, copyright, and any other relevant site information. It’s important to note that keyword meta tags haven’t been a ranking factor since 2009, so you don’t have to worry about that. Just focus on adding keywords to optimize your on-page elements.

Since the default installation of WordPress does not contain meta tag data, site owners must add this data themselves. They can do this manually by adding meta tags in their theme template files or by using WordPress plugins. Let’s take a look at each method below.

Download Now: How to Launch a WordPress Website [Free Guide + Checklist]

How to Manually Add Meta Tags in WordPress

Manually adding meta tags in WordPress is relatively simple. For this demo, we’ll be using the WordPress Codex sample. Imagine you are Harriet Smith, a veterinarian who blogs about her pet stories on WordPress. You want to add the following generic meta tags to your site:

<meta name=”resource-type” content=”document” /> <meta http-equiv=”content-type” content=”text/html; charset=US-ASCII” /> <meta http-equiv=”content -language” content=”en-us” /> <meta name=”author” content=”Harriet Smith” /> <meta name=”contact” content=”[email protected]” /> <meta name=” copyright” content=”Copyright (c)1997-2004 Harriet Smith. All rights reserved.” /> <meta name=”description” content=”Special stories and tales about dogs, cats, birds, ferrets and other pets told by Harriet Smith, veterinarian. Stories include tales of bravery and courage of animals, life and death, camaraderie,

To do so, follow this step-by-step guide.

1. Log in to your hosting account control panel and open File Manager .

2. Click on the public_html folder on the left side of your screen.

Blue graphic prompting the user to click on the folder labeled public_html

image sources

3. Click on the wp-content folder.

4. Find the folder labeled “themes”.

Blue graphic prompting user to click on theme folder

ImageSource

5. Click on the folder with the name of your theme.

6. Right-click on the header.php template and select Edit from the drop-down menu.

7. Add your meta tags in the head section (between the tag <head></head>.

8. Enregistrez vos modifications.

Blue graphic prompting user to save changes

ImageSource

While manually adding meta tags is a relatively simple process, it only works if you have a clear purpose for your website like Harriet. In that case, you can use basic information to create generic meta tags and place these in your header.

If your site covers a wider range of topics, then you’ll need to set unique meta tags for each post and page. You can do so using a plugin.

How to Add Meta Tags in WordPress Using a Plugin

With a plugin, you can add generic and unique meta tags to your WordPress site. We’ll walk through how to add them using the Meta Tag Manager plugin. If you’re using another plugin, check out its documentation for exact steps.

1. First, log into your WordPress dashboard.

2. Click Plugins > Add New.

Click on Plugins > Add New in the WordPress Dashboard to start the plugin installation process

3. Search for “Meta Tag Manager.” When the search result appears, click Install Now and Activate.

Download and install the Meta Tag Manager plugin

4. You’ll be automatically redirected to the tab containing all installed plugins on your site. At the top of the screen, you should see a message confirming the plugin has been activated.

Success message "The plug-in is activated"

5. Navigate to Settings > Meta Tag Manager.

Click Settings > Meta Tag Manager to start adding meta tags.

6. Now you can begin creating global meta tags and assigning them to different areas on your site. Let’s say you want to add an author meta tag for all posts on my site. You’d configure the settings as shown below.

Create author name meta tag for all posts in WordPress

7. Ensuite, passez à la page Options générales et assurez-vous que les publications, les pages et les médias sont répertoriés dans le champ intitulé “Prise en charge du type de publication”. Ainsi, lors de la modification d’un article, d’une page ou d’un fichier multimédia, vous pouvez ajouter des balises méta qui ne seront affichées que sur cet élément spécifique.

Configuring Post Type Support in the Meta Tag Manager Plugin for WordPress

8. Lors de l’édition de cette manière, le Meta Tag Manager apparaîtra comme une méta-boîte individuelle, comme indiqué ci-dessous.

meta box meta tag manager

Dans la démo ci-dessous, vous verrez que je suis dans l’éditeur de publication. Je fais défiler la métabox Yoast SEO jusqu’à la métabox Meta Tag Manager et j’ajoute une balise meta description unique à ce message spécifique.

Creating meta tags on a single demo post

By following the same process, you can add unique meta tags to all of your posts and pages.

Add meta information to your site

To provide search engines with as much information as possible about your WordPress website, you can add generic meta tags to your theme header. Or you can use a meta tag plugin to create and manage global meta tags as well as custom meta tags for your individual posts and pages. Choose the method that works best for you and your site.

Keyword

Themes: WordPress website

Don’t forget to share this post!


Video How to add a meta tag to your sites home page wordpress

Related Posts

How to add seo keywords in wordpress

Contents1 Cómo agregar palabras clave de SEO en WordPress (aumentar el CTR y las clasificaciones)1.1 Post Title1.2 Headline1.3 Header Tags1.4 Introduction and Conclusion1.5 Body Copy1.6 URL1.7 Meta…

How to embed google calendar into wordpress

Contents1 How to Add a Google Calendar in WordPress (Step by Step)2 Add a Google calendar to your website3 calendario de Google3.1 Versatile plans and pricing4 Video…

How to change the logo in wordpress

Contents1 How to Add a Custom Logo to Your Site Header2 Site Logo2.1 Planes y precios versátiles3 Add, remove or edit a custom logo4 Video How to…

How to add a popup on wordpress

Contents1 Easily create a WordPress emergent form (2 forms)1.1 ¿Por qué usar un formulario emergente de WordPress?1.2 Método #1: Crear un formulario emergente con OptinMonster + WPForms1.3…

How to roll back wordpress version

Contents1 How to Revert WordPress: Undo WordPress Updates (Easy Way)2 How to Downgrade WordPress & Roll Back to a Previous Version2.1 1. A WordPress update included significant changes…

How to rollback wordpress version

Contents1 How to Downgrade WordPress and Revert to an Older Version1.1 1. A WordPress update included significant changes that are not compatible with your theme or plugins1.2…