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.

Does Page Dwell Time Influence Search Engines?

Does Page Dwell Time Influence Search Engines?

Your business site is struggling to rank higher in search results, and you've tried everything from keyword optimization to building backlinks. But one thing you may have overlooked is something called dwell time. Dwell time may seem like a small detail, but it can...

read more
Why Proactive SEO Always Beats Reactive Strategies

Why Proactive SEO Always Beats Reactive Strategies

Gone are the days when you could leave your site untouched for months and still rank on search engines. Today, you have to be proactive at all times to stay relevant and visible in search results. If you wait until your traffic drops to fix your SEO, you’re already...

read more
How Semantic Search Shapes SEO

How Semantic Search Shapes SEO

When you think about SEO, keywords likely come to mind first. But Google's algorithm has evolved far beyond simple keyword matching. Now you have user intent, context, and topic relevance all working together to determine where you appear in search results. If you...

read more
Why Your SEO Strategy Needs Pillar Pages

Why Your SEO Strategy Needs Pillar Pages

After publishing blog posts consistently over the past few months, you're expecting your website to start climbing in search engine results. But without any pillar pages to organize your content and demonstrate your expertise on key topics, you're likely to stay stuck...

read more
What Utah Businesses Should Know About Current SEO Trends

What Utah Businesses Should Know About Current SEO Trends

As a Utah business owner with an online presence, you need to keep up with how search engines are changing. SEO determines whether you show up in local search results or disappear into page five. Businesses that understand these shifts and adjust their approach get...

read more
Skip to content