Google Was Rewriting My Title. The Cause Was a Single JSX Element.

📰 Dev.to · Ted

Google rewrites page titles based on content, including nested JSX elements, affecting search engine rankings

intermediate Published 22 May 2026
Action Steps
  1. Inspect your website's HTML structure to identify potential title rewriting causes
  2. Check for nested elements like span or div inside headings like H1 or H2
  3. Remove or restructure unnecessary nested elements to prevent title rewriting
  4. Test and verify title consistency across mobile and desktop devices using Google Search Console
  5. Apply the fix by modifying the JSX element, for example, by removing the subtitle span from the H1 element
Who Needs to Know This

Developers and SEO specialists can benefit from understanding how Google rewrites titles, to optimize their website's search engine rankings and ensure consistent titles across devices

Key Insight

💡 Google rewrites titles based on content, including nested JSX elements, which can affect search engine rankings

Share This
🚨 Google rewriting your page titles? 🤔 Check for nested JSX elements like span inside H1! 💡
Read full article → ← Back to Reads