Google
5.0
★★★★★
161+ Google reviews

How to optimize WordPress heading tags

A little extra (and easy) “oomph” you can give your WordPress site, in regards to SEO, is to optimize your WordPress headings.

How do you do it? You’re probably already doing the basics.

  • using keywords in your Post titles
  • using decent character count (not too long, not too short)

What’s missing? Inline title attributes. What are inline titles? They’re the equivalent of image alt tags, but for hyperlinks. When you hover over a link it too can have an “alt” description of sorts pop up. You can see in the screenshot below how an optimized inline title looks on hover.

optimize WordPress heading

Yes, we know it’s a pic of a screen. When screen capture was used it would make the inline title disappear once a button was touched.

Many templates have this already coded into the template. But what if your template doesn’t? Here’s how you add it.

Most template call the “the_title” function.

<h1><?php the_title(); ?></h1>

The php that says “<?php the_title(); ?>” is what dynamically generate your Post’s title that you’ve assigned. You can usually find that snippet of code in the single.php (for Posts), page.php (for Pages), or index.php (for the home page, and various others pages – depends on the template). If you can’t find it than your template may call includes and the titles may be generated from files names something like loop.php, loop-single.php, and loop-page.php, etc. Your template may use h2 tags, a div, or simply an “a href.” This update can be used within any of those tags.

Since you’ve already optimized your post title than you can easily replicate that as your inline title. Update your h1 (or other, similar tag) like to the following:

<h1 title=”<?php the_title(); ?>”><?php the_title(); ?></h1>

You can see the new section added in bold red. That’s it. Now you have inline titles added to add a little extra optimization to your WordPress headings.

Free SEO Report

See how SEO could improve your website. Completely free and no obligations.


We do not share or sell your email. It is used to send your report. You can also wait about 10 seconds after the report completes and this page will refresh with your results on the screen.

Is Your SEO Agency Delivering Results?

Is Your SEO Agency Delivering Results?

You pay an SEO company thousands to put your Layton business on the first page of Google. SEO results take time, but you still deserve to know where your money goes each month. If the agency only shares spreadsheets with columns like search volume and keyword...

read more
How to Read an SEO Report Without Getting Lost

How to Read an SEO Report Without Getting Lost

If you have ever opened an SEO report and felt like you were reading a foreign language, you are not alone. A lot of reports throw charts, percentages, and rankings at you without explaining what any of it means for your business. That makes it difficult to judge...

read more
AI Websites and the Liability Nobody Talks About

AI Websites and the Liability Nobody Talks About

AI is transforming how businesses build on the web. That's exactly why a few numbers I'm about to share will surprise you, and not in a good way… AI-generated code now carries 2.7× the vkulnerability over human-written code, and by mid-2025, it was generating more...

read more
Optimizing SEO With “Buying Intent” Keywords

Optimizing SEO With “Buying Intent” Keywords

If you want SEO to generate revenue, you need traffic that comes with a reason to buy. Sure, rankings and visits matter. But if the people landing on your site aren't close to making a decision, none of that activity translates into revenue. This is where buying...

read more
The SEO Timeline Most Businesses Get Wrong

The SEO Timeline Most Businesses Get Wrong

If you've checked your rankings and felt your stomach drop, you're not alone. Search engine algorithms change faster than most businesses can keep up with. One week, you're ranking among the top businesses in your industry. The next, a competitor you've never heard of...

read more