How to Add Meta Tags to Your WordPress Home Page (With or Without a Plugin)

TLDR

There are two reliable ways to add meta tags to a WordPress home page in 2026: install Rank Math or Yoast and fill in the fields (takes five minutes, no code), or add the tags directly to your child theme’s functions.php using the wp_head action (a little code, but future-proof). Both work. Most site owners should pick the plugin route.

This post shows both methods step by step, lists the three meta tags that actually matter in 2026, and points out the ones that no longer do anything at all.

Meta tags are the short snippets of HTML in the <head> of your site. They tell browsers, search engines and social networks what the page is about, who wrote it, how it should be previewed when shared, and whether to index it at all. Three of them genuinely matter for your WordPress home page. The rest are mostly legacy.

This guide covers the two sensible routes (plugin or code), the tags you should actually care about, and the four mistakes that trip up beginners trying to add meta tags manually for the first time.

The three meta tags your home page actually needs

Focus on these and you have covered ninety-five percent of the SEO and social-sharing value:

  • Title tag. Usually set by WordPress from your site title, but you can override it per page. This is the clickable blue link in Google results.
  • Meta description. The summary Google shows beneath the title. Not a direct ranking factor, but the biggest driver of click-through rate from the same position.
  • Open Graph tags (og:title, og:description, og:image). What appears when someone shares your URL on Facebook, LinkedIn or Slack. Twitter has its own set (twitter:card, twitter:title) but most plugins now handle both.

Method one: the plugin route (recommended for most)

If you are not a developer, this is the right path. Both Rank Math (free, generous feature set) and Yoast SEO (free and paid tiers) let you set every important meta tag from the WordPress admin, in under five minutes.

Using Rank Math

  1. Install Rank Math from Plugins, Add New.
  2. Activate and run the setup wizard. Let it auto-detect your site type, connect to Google Search Console if you want to.
  3. Go to Rank Math, Titles and Meta, Homepage.
  4. Fill in the SEO title (under 60 characters), meta description (under 155 characters), and upload a social share image (1200×630 pixels works best).
  5. Save. Rank Math now injects every tag into the <head> of your home page.

Using Yoast SEO

  1. Install Yoast SEO from Plugins, Add New.
  2. Go to Yoast SEO, Search Appearance, Homepage.
  3. Fill in the SEO title template and meta description template.
  4. Open Social in the same section, add your Facebook and Twitter image uploads.
  5. Save. Done.

Common mistakes beginners make here

  • Using both Rank Math and Yoast at once. They output conflicting tags and Google does not know which to trust. Pick one.
  • Stuffing keywords into the meta description. Google rewrites spammy descriptions automatically, so your carefully chosen keywords disappear.
  • Leaving the default WordPress tagline in place. “Just another WordPress site” appears on thousands of homes. Google notices.
  • Setting a tiny social share image. Anything under 600 pixels wide looks terrible when shared and many platforms will ignore it entirely.

Method two: the code route (for developers)

If you prefer code, do not edit WordPress core or your parent theme. Create or use a child theme, then add the tags via the wp_head action in its functions.php.

  1. Create a child theme if you do not already have one. The official WordPress child theme guide covers the ten-minute setup.
  2. Open your child theme’s functions.php.
  3. Add a function hooked to wp_head that outputs the tags when is_front_page() is true.
  4. Save and upload. Test with view-source in your browser to confirm the tags appear in the <head>.

A minimal example, safe to paste into a child theme’s functions.php:

function wpc_home_meta() { if ( is_front_page() ) { echo '<meta name="description" content="Practical WordPress guides and tutorials from working professionals.">'; } } add_action('wp_head', 'wpc_home_meta');

Replace the description text and add further tags as needed. Most developers add meta description, canonical, Open Graph, and Twitter Card tags in the same function.

Three meta tag cards representing title, description and canonical link
Three meta tags earn almost every point on a WordPress home page.

The meta tags you can skip in 2026

  • <meta name="keywords">. Google stopped using it in 2009. Other search engines followed. Remove it if a template still outputs one.
  • Revisit-after. No major search engine has honoured this since the early 2000s. It was never widely supported.
  • Author. Still valid HTML, but not used by Google for homepage ranking. Author schema on individual posts is the current way to credit writers.
  • Copyright. Nice to have, no ranking impact.

About the author

Josh Morley has spent over a decade solving WordPress problems for real client sites. He runs the Marketing The Change agency out of Liverpool, is on Codeable since 2015, and has delivered more than 2,440 WordPress and WooCommerce projects with a 4.92 / 5 average rating.

★★★★★

“Josh was incredibly helpful with everything and very responsive. He went above and beyond to make sure I had everything I needed.”

Kaitlyn H. · Noindex tag on homepage · 12 May
★★★★★

“Josh is a very professional developer. He’s frequently in contact with updates and changes.”

Elena A. · Fixing · 02 Apr

How to check your meta tags are actually there

Five-second test: open your home page, right-click, choose “View page source”. Press Ctrl+F and search for <meta name="description". If you see your custom description, you are done.

For a richer view, paste your URL into the free Metatags.io previewer. It shows what Google, Facebook, Twitter and LinkedIn will display when someone shares your link, including the social share image.

Try it yourself this week

Do a one-hour meta audit on your own WordPress home page.

  1. Paste your home page URL into Metatags.io and note what is currently displayed.
  2. Open Rank Math or Yoast in your admin. Check the SEO title, meta description, and social share image.
  3. Rewrite each to be specific to your business. No “Home” or “Welcome” titles.
  4. Re-check Metatags.io. Look at the Facebook and LinkedIn previews. Adjust until they feel click-worthy.

Meta tags are one of the few things you can fix in an afternoon that Google will re-crawl inside a week. Small effort, real payoff.

Prefer a human to help?

If the steps above are not enough, or you are short on time, the team behind WP Clipboard runs a Liverpool WordPress agency that has been fixing sites for small businesses and charities since 2012. Fixed-price quotes, no long tie-in.

Visit Marketing The Change

Frequently Asked Questions

Can I add meta tags to a single WordPress page, not just the home page?

Yes, Rank Math and Yoast both give every individual post and page its own title, meta description and social share image fields. Scroll to the SEO box below the post editor, fill in the fields, update. Takes under a minute per page.

Does WordPress add any meta tags automatically?

A few, yes. WordPress adds the <title> tag, the generator tag, and a few RSS-related links. It does not add a meta description, and it does not add Open Graph tags. That is why plugins exist.

Will adding meta tags slow down my site?

Not noticeably. Meta tags are a few dozen bytes in the <head>. What can slow down a site is installing three SEO plugins that all add the same tags. Pick one SEO plugin and commit.

Can I remove the WordPress generator meta tag?

Yes, and it is a mild security win (it advertises your WordPress version, which helps attackers target out-of-date sites). Add remove_action('wp_head', 'wp_generator'); to your child theme’s functions.php.

What size should my Open Graph image be?

1200 pixels wide by 630 pixels tall. Under 200KB if possible. This fits Facebook, LinkedIn and Twitter’s large-card format cleanly. If you only have a smaller image, 600×315 is the minimum supported.