ObservationsHeadings and page structure

Hiding a heading with CSS does not remove it from the page

In short

A theme banner hidden by CSS still gave 16 pages two main headings in the code.

What I did

Sixteen pages looked like they had one main heading. But the theme's title banner was only hidden with CSS, so its H1 was still in the page code. I changed the child theme so the banner is removed from the HTML on those 16 pages, not just hidden.
Where

A restaurant website on WordPress, August 2026
What changed

All 16 pages now have exactly one H1 in the code. I checked each one on the live site.
Did it work

It worked
What you should do

View your page source with Ctrl+U and search for <h1. Count how many you find. What you see on screen is not always what Google reads.
How long it took

About an hour, including clearing the cache

The H1 is the main heading of a page. It tells readers and search engines what the page is about.

Why it matters

CSS controls how a page looks. Hiding something with CSS only hides it from people. The text is still in the HTML, and the HTML is what search engines read.

Two H1 tags will not get a page penalised. But here the hidden one was a generic theme title, so it blurred the main topic of 16 pages that each targeted a different town.

How to check your own site

  • Press Ctrl+U on the page and search for <h1. There should be one.
  • If your theme adds its own title banner, look for a theme setting to switch it off.
  • If there is no setting, the banner needs removing in the template or child theme, not hiding in CSS.

At a glance

ResultIt worked
Effort to copyAbout an hour
Type of businessRestaurant and food
16pages with a hidden second H1
1H1 per page after the fix
What this changed in how I work

I check headings in the page source, never on the screen.

Part of The SEO Lab, an open notebook of real SEO work, published as it happens.Recorded 11 October 2026. Filed under Observations. Everything here comes from work I did myself. If a number looks wrong, ask me how it was measured.

Keep reading in The SEO Lab