Key takeaways
- A WordPress theme controls the HTML of every page, so a theme problem is repeated across the whole site, not on one page.
- The usual issues are messy headings, content that only loads after a click, layout shifts, site-wide fonts and scripts, and duplicate or missing schema.
- Under mobile-first indexing, a mobile template that drops text, headings or structured data drops them for search too.
- Most fixes happen in a child theme or the theme settings, not in every post.
- Check before and after any theme change with URL Inspection, the Rich Results Test and the Core Web Vitals report.
WordPress theme SEO is not about the theme being “SEO friendly” on its sales page. It is about what the theme prints into the HTML of every page: the headings, where your text sits, what loads first and what structured data comes with it. When I review a site as part of WordPress SEO consulting, the theme is one of the first things I check, because one template mistake is repeated on hundreds of pages.
Speed is only part of the story. If your main problem is slow pages, my guide on diagnosing a slow WordPress site covers it. This article stays on the theme and the SEO problems it creates beyond load time.
I first published this article in 2025 and rewrote it around what Google, web.dev and the WordPress handbook say.
Headings baked into the template
Many themes decide your heading tags for you. In audits I often find the logo wrapped in an H1 on every page, sidebar and footer widget titles marked up as H2 or H3, and the real page title demoted. Add an H1 typed in the editor and a page ends up with three “main” headings.
To be fair to themes, Google is relaxed about heading markup. Its SEO Starter Guide says that “Having your headings in semantic order is fantastic for screen readers” but that “from Google Search perspective, it doesn’t matter if you’re using them out of order”. It still asks you to “provide headings to help users navigate your pages.”
So the fix is about clarity, not a rule. What I aim for:
- One main heading per page, normally the post or page title.
- Logo, sidebar, footer and widget titles as plain styled text, so the outline belongs to the content.
- H2 and H3 used in the editor for real sections, as I describe in my guide to on-page SEO for WordPress.
To check, view the page source and search for “<h1”. If the result surprises you, the fix belongs in a child theme template, not in every post.
Content hidden in sliders, tabs and accordions
Themes like to fold content away in sliders, tabs and accordions. Whether this matters for search depends on one thing – is the text already in the HTML when the page loads, or does it only arrive after a click or swipe?
Google’s mobile-first indexing best practices are direct about this: “Google won’t load content that requires user interactions (for example, swiping, clicking, or typing) to load.” The same page says “Don’t lazy-load primary content upon user interaction”, and also suggests that “Instead of removing content, consider moving content into accordions or tabs to save space.”
So tabs and accordions are fine when their text is in the page source and only hidden with CSS. A slider or tab that fetches its content after a click is a problem if you want that content found. Sliders have a second cost: in my experience the first slide is often the largest image on the page, so a heavy slider slows Largest Contentful Paint. If your main selling points live only in slide three, move them into normal text.
Page builders, layout shifts and the main image
Heavy theme frameworks and page builders often wrap simple content in nested containers, load their own scripts and styles, and position elements only after scripts run. The result is text that jumps as images and banners appear, and a main image that arrives late.
Google’s Core Web Vitals page sets the targets: LCP “within the first 2.5 seconds of the page starting to load”, INP “of less than 200 milliseconds” and CLS “of less than 0.1”. It adds that good Core Web Vitals, “along with other page experience aspects, aligns with what our core ranking systems seek to reward.” INP replaced First Input Delay in March 2024, so ignore theme demos that still quote FID.
web.dev’s guide to optimising CLS lists the usual causes: “Images without dimensions”, “Ads, embeds, and iframes without dimensions”, “Dynamically injected content” and “Web fonts”. Its fixes map onto theme settings:
- “Always include width and height size attributes on your images and video elements”, or reserve the space with CSS aspect-ratio.
- Reserve space for cookie banners, announcement bars and embeds with a min-height.
- Make the main image of each template a normal image in the HTML and do not lazy-load it (my practice, to help LCP).
Fonts and scripts loaded on every page
A theme that offers everything tends to load everything: icon sets, animation libraries, slider scripts, several font weights, map and social scripts. Most are needed on one or two templates and sent to every page anyway.
The WordPress theme handbook page on including CSS and JavaScript describes the right way: load styles and scripts with wp_enqueue_style and wp_enqueue_script rather than hard-coding them, which “ensures proper loading and caching” and lets you use conditional tags to target specific pages. Its own example loads the comment reply script only “If comments are enabled by the user, and we are on a post page”. Since WordPress 6.3 a script can also be given a “defer” or “async” loading strategy, so it does not block the page while it downloads.
What I do with a heavy theme:
- List the files each template loads in the browser’s network panel.
- Switch off theme modules the site does not use.
- In a child theme, dequeue assets on templates that do not need them and defer the rest where possible.
- Keep only the font families and weights the design uses.
Missing or duplicate schema from the theme
Some themes print their own structured data, such as Article or breadcrumb markup. Then an SEO plugin adds its own, and a reviews or local business plugin adds a third. The result can be two Organization entities with different names, two sets of breadcrumbs, or Article markup on service pages. Other themes hide the author or date that a plugin’s schema refers to.
Google’s structured data guidelines give the two rules that matter here: “Your structured data must be a true representation of the page content” and “Don’t mark up content that is not visible to readers of the page.” They also say you “can test compliance with technical guidelines using the Rich Results Test and the URL Inspection tool”, and that “Google does not guarantee that your structured data will show up in search results.”
My fix is to choose one source of schema, usually the SEO plugin, switch off the theme’s own markup (or remove it in a child theme), and test one URL per template. Every value in the markup, such as author, date or address, should be visible on the page.
Mobile layout differences under mobile-first indexing
Responsive themes often show a different layout on phones. That is allowed – Google’s mobile-first page says “You can have a different design on mobile to maximize user experience” – but the content has to survive the change.
The same page asks you to:
- “Make sure that your mobile site contains the same content as your desktop site.”
- “Use the same clear and meaningful headings on the mobile site as you do on the desktop site.”
- Make sure structured data is “present on both versions of your site.”
- “Use the same robots meta tags on the mobile and desktop site.”
- Keep “the same alt text for images as the desktop site.”
Trouble comes from “hide on mobile” settings that remove blocks, or a lighter mobile template without the text and internal links of the desktop page. Check key pages in a phone-sized window and with URL Inspection in Search Console.
How I check a theme before and after a change
I run these checks on one URL per template type.
| Check | Where | What good looks like |
|---|---|---|
| Headings | Page source or developer tools | One clear main heading, logical sections below it |
| Hidden content | Page source, URL Inspection | Tab, accordion and slide text present in the HTML |
| Core Web Vitals | Search Console Core Web Vitals report, PageSpeed Insights | LCP, INP and CLS in the good range for real visitors |
| Scripts and fonts | Browser network panel | Only what the template uses, non-critical scripts deferred |
| Schema | Rich Results Test, URL Inspection | One source, no duplicates, values visible on the page |
| Mobile parity | Phone-sized window, URL Inspection | Same text, headings, links and structured data as desktop |
Before switching themes, record these results so you can compare after launch: a theme change touches every page at once, like a migration. For wider issues such as indexing, redirects or sitemaps, see my article on hidden technical SEO mistakes in WordPress.
FAQ
Can a WordPress theme hurt SEO?
Yes, because the theme writes the HTML of every page, so heading, content, layout, script and schema problems repeat across the site. Most can be fixed without changing themes.
Google’s SEO Starter Guide says heading order does not matter from Google Search’s perspective. I still recommend one clear main heading per page, for readers and screen readers.
Should I change my theme to improve SEO?
Not by default. Many issues are fixed in a child theme or the theme settings. Change themes when the problems cannot be fixed without fighting the theme, and treat the switch like a migration.