SEO & Analytics

How to Add Title Tags in WordPress

A step-by-step guide to creating SEO-friendly title tags on your WordPress site

Is every page on your WordPress site showing the same generic title in Google, or just “Home” in the browser tab? That usually means your title tags aren’t set up correctly, which can hurt both click-through rate and rankings.

In this guide, you’ll learn exactly how to add and control title tags in WordPress using core settings, an SEO plugin, and (if needed) a small theme tweak. If you’re completely new to SEO, you may also want to review our complete beginner’s guide to WordPress SEO once you’re done here.

By the end, every important page on your site will have a unique, descriptive, and search-friendly title tag that you can preview, test, and easily adjust over time.

Prerequisites

Before you start changing title tags, make sure you have a few basics covered so you don’t accidentally break anything on your live site.

  • Admin access to your WordPress dashboard.
  • Permission to install and configure plugins (for SEO plugins).
  • Basic familiarity with either the Classic Editor or the block editor.
  • Optional but recommended: access to your theme files via a child theme, FTP, or your host’s file manager.

Step 1: Understand how WordPress title tags work

WordPress title tag uses several different “titles,” and it’s important to understand how they relate to the title tag that search engines see.

  • Post/Page Title: The title you type at the top of the editor (e.g., “How to Bake Sourdough Bread”).
  • Title Tag (<title>): The HTML element that appears in the browser tab and as the blue link in Google’s results.
  • SEO Title: A custom title (often set via plugin) that tells WordPress exactly what to output in the <title> tag.

On modern themes that support add_theme_support( 'title-tag' ), WordPress automatically generates a title tag based on your settings and templates. SEO plugins like Yoast or Rank Math let you override that default for better control on a per-page basis.

Your goal is simple: ensure that every important page has a unique, descriptive title tag that matches the content and encourages clicks.

Step 2: Configure your global site title in WordPress

Before you fine-tune individual pages, set a clean, brand-correct site title. WordPress often uses this as part of your title tag pattern (for example, “Post Title – Site Name”).

  1. Log in to your WordPress dashboard.
  2. Go to Settings → General.
  3. In the Site Title field, enter your brand or site name (e.g., “WP Headliner”).
  4. Optionally update the Tagline with a short description or leave it blank if you don’t want it used anywhere.
  5. Click Save Changes.
WordPress General Settings dashboard screen displaying the Site Title and Tagline fields, important for configuring your website's title tags.
WordPress General Settings show fields for your site’s title and tagline, which are important for default title tags.

The exact way the Site Title appears in your title tags will depend on your theme and any SEO plugin you use, but getting this right now prevents confusing or off-brand titles later.

[strong]Pro Tip:[/strong] Keep your Site Title short and consistent with your brand (for example, “Acme Plumbing” instead of “Acme Plumbing – The Best Plumbers in Town”). You can sell the benefits in the individual page titles instead.

Step 3: Add custom title tags with an SEO plugin

The easiest and safest way to add and manage title tags in WordPress is with a dedicated SEO plugin. We’ll use Yoast SEO as the example, but the process is similar in Rank Math or All in One SEO.

3.1 Install an SEO plugin (Yoast example)

  1. In the WordPress dashboard, go to Plugins → Add New.
  2. Search for Yoast SEO.
  3. Click Install Now, then click Activate.

Once activated, Yoast adds a new SEO menu in your admin sidebar and a meta box on your post and page edit screens.

3.2 Configure global title templates

Next, you’ll define how title tags should look by default for posts, pages, categories, and other content types.

  1. Go to SEO → Search Appearance.
  2. Under the Content Types tab, find Posts and Pages.
  3. In the SEO title field, use variables like %%title%% and %%sitename%% (for example: %%title%% | %%sitename%%).
  4. Repeat for other content types you use (products, custom post types, etc.).
  5. Save changes.

This tells Yoast how to generate a title tag automatically when you don’t specify a custom one.

3.3 Set a custom title tag on a post or page

For important pages (home, key services, top posts), you’ll usually want a custom, hand-crafted title tag.

  1. Open the post or page in the editor (Classic Editor or block editor).
  2. Scroll down to the Yoast SEO meta box.
  3. In the SEO title field, type your optimized title (e.g., “How to Add Title Tags in WordPress (Beginner’s Guide)”).
  4. Watch the preview snippet and the length bar to avoid truncation in search results.
  5. Click Update or Publish to save.
WordPress post editor with Yoast SEO plugin, showing SEO title, meta description, and mobile search result preview for 'How to Add Title Tags'.
This image displays the Yoast SEO plugin interface within the WordPress post editor, showing how to customize title tags and meta descriptions for search engines.

Repeat this for your most important pages first, then work your way through the rest of your content over time.

For a deeper walkthrough of adjusting these titles across your site, see our full tutorial on changing the SEO title in WordPress.

[strong]Pro Tip:[/strong] Aim for 50–60 characters, include your primary keyword near the beginning, and make the title compelling and specific. Think like a searcher scanning a list of blue links.

Step 4: Fix or add theme-level title tag support

If your theme is very old or poorly coded, it might hard-code the <title> element or fail to support WordPress’s dynamic title system. Modern themes like Jannah already handle this correctly, so you mainly need to configure your SEO plugin.

4.1 Check if your theme already supports dynamic title tags

  1. Open a page on the front end of your site (for example, a blog post).
  2. Right-click and choose View Page Source (or use your browser’s developer tools).
  3. Search for <title> in the source code.
  4. Confirm that the title text changes when you view different pages and matches the SEO title you set in your plugin.

If every page shows the same title, or if it doesn’t match what you configured in Yoast, your theme might be overriding or missing dynamic title support.

4.2 Enable title tag support in your theme

[strong]Warning:[/strong] Always edit a child theme instead of the parent theme, and take a backup before changing PHP files. A typo can break your site’s front end.
  1. Using FTP, cPanel File Manager, or the built-in Theme File Editor, open your child theme’s functions.php file.
  2. Look for a function that runs on the after_setup_theme hook. If you don’t see one, add this:
function mytheme_setup() {
    add_theme_support( 'title-tag' );
}
add_action( 'after_setup_theme', 'mytheme_setup' );
  1. Save the file and reload a front-end page to ensure there are no PHP errors.

If your theme already has a mytheme_setup() (or similar) function, just add the add_theme_support( 'title-tag' ); line inside that function instead of creating a new one.

4.3 Remove any hard-coded <title> tags

  1. Open your theme’s header.php file in the child theme.
  2. Search for a hard-coded title element, for example:
<title>My Blog</title>
  1. Delete that line or comment it out so WordPress (and your SEO plugin) can output the title instead.
  2. Save your changes and reload a front-end page to confirm the title now comes from WordPress and your plugin.

If you’re already comfortable editing theme files, this is also a good moment to review other head elements like meta description and canonical tags. Our guide to adding meta tags in WordPress shows you how to handle those safely.

Step 5: Test and refine your WordPress title tags

Once your title tags are set up, you’ll want to verify that everything works as expected in the browser and in Google’s index.

  1. Check in the browser tab: Visit a page and look at the text in the tab. It should match the SEO title you set (or your template pattern).
  2. View the page source: Use View Page Source and confirm the <title> element contains the correct text.
  3. Spot-check in Google: Search for site:yourdomain.com "keyword" and see how titles are displayed. Google may occasionally rewrite them, but most should be close to your originals.
  4. Use Google Search Console: In the URL Inspection tool, fetch a few key URLs to confirm they’re being crawled and rendered correctly.
  5. Adjust over time: If important pages have low click-through rates, experiment with clearer, more benefit-driven titles.
[strong]Note:[/strong] Search engines may take days or weeks to re-crawl and update your titles. Be patient and avoid constantly changing them without giving Google time to respond.

Lock in better SEO with clean WordPress title tags

Adding proper title tags in WordPress is a one-time setup that pays off for years. With a good global pattern, an SEO plugin to fine-tune key pages, and a theme that supports dynamic titles, you make it easy for search engines and users to understand every page on your site.

From here, you can focus on optimizing your meta descriptions, on-page content, and internal links, knowing that your title tags are working hard to attract the right clicks from the right visitors.

Further Reading

Frequently Asked Questions

What is a title tag in WordPress?

The title tag is the HTML <title> element that appears in the browser tab and as the main clickable headline in search results. In WordPress, it’s usually generated automatically from your post title, site title, and any SEO plugin settings you configure.

Why are my new title tags not showing in Google search results?

Google doesn’t update instantly. After you change a title tag, search engines need to re-crawl the page before the new title appears in results. Caching plugins or CDN caches can also delay changes. As long as the <title> in your page source is correct, Google will usually update within a few days to a few weeks.

How do I stop every page from using the same title tag?

This usually means your theme is hard-coding a single <title> value, or an SEO plugin is disabled or misconfigured. Enable dynamic title support in your theme (with add_theme_support( 'title-tag' )), remove any hard-coded <title> in header.php, and use an SEO plugin to generate unique titles for each content type.

Can changing title tags hurt my SEO or cause penalties?

Changing title tags will not cause penalties as long as the titles remain accurate and not misleading. However, large, frequent changes to titles on high-traffic pages can impact rankings and click-through rates. Make thoughtful, incremental improvements and monitor performance in Google Search Console.

How long does it take to update all title tags on a medium-sized WordPress site?

For a site with a few hundred posts, you can usually configure global templates and manually review key pages in a day or two. Start with your homepage, top landing pages, and primary category or service pages, then batch the rest over time so you’re not rushing and can track the impact.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button