Apostrophes showing as ' in Google results on a Shopify store
By Michael Broadbridge. Last checked 14 November 2026 on Shopify admin, Dawn theme 16.
Short answer
Google shows ' in place of an apostrophe when the theme escapes the page title or meta description twice. Open the page source and search for '. If it is there, find the title or meta tag in theme.liquid or the meta tags snippet and remove the extra escape filter, so the text is escaped once.
Symptoms
You may see one of these messages:
'
&
- Google shows ' where an apostrophe should be in the page title or description.
- An ampersand shows as & in search results.
- The page looks normal on your store. The codes only appear in Google or in link previews when the page is shared.
- Every page with an apostrophe in its title is affected, not just one.
Causes, most likely first
The theme escapes the title or description twice
Liquid’s escape filter turns an apostrophe into ' and an ampersand into &. Run it a second time and ' becomes ', which a browser or Google displays as '.
An SEO metafield or custom field escaped on top
Custom code that outputs an SEO metafield, or a value someone has already escaped, then adds the escape filter again.
The codes are saved in the text itself
Products imported from another platform can arrive with ' written into the SEO title or description. The theme then escapes the ampersand in it.
A second set of tags from an app
An SEO app can add its own title or meta tags alongside the theme’s, and either set can be the one escaped twice.
How to fix it
Confirm it in the page source
- Open the affected page on your live store in Chrome on a computer.
- Right click on the page and choose View page source.
- Press Ctrl and F, or Command and F on a Mac, and search for ' and then for &.
- Note which tag each match is in: the title tag, the meta description tag, or the og:title and og:description tags used for link previews.
- A correctly escaped apostrophe appears as ' or as a plain apostrophe. ' means the text was escaped twice.
Check the text saved in Shopify
- For a page, click it and then click Edit website SEO in the Search engine listing preview section.Menu:
Online Store > Pages - For a product, collection or blog post, open it and edit the search engine listing in the same way.
- For the home page, check the title and meta description in the Social sharing image and SEO section.Menu:
Online Store > Preferences - If the saved text contains ' or & as typed characters, replace them with a plain apostrophe or ampersand and save.
Find the double escape in the theme code
- Click the three dot button next to your live theme and choose Duplicate, so you have a backup.Menu:
Online Store > Themes - Click the three dot button again and choose Edit code.
- Open layout/theme.liquid and find the title tag and the meta name="description" tag. In Dawn, the title is output as {{ page_title }} and the description as {{ page_description | escape }}.
- Open the snippet that outputs the social tags. In Dawn it is snippets/meta-tags.liquid, where og_title and og_description are each escaped once.
- Look for a value escaped twice: two escape filters on one output, a variable assigned with escape and then output with escape again, or a metafield that already holds escaped text with escape added.
- Remove the extra escape so each value is escaped once. If the stored text may already contain codes, use escape_once instead, which escapes the text without changing characters that are already escaped.
- Save, reload the page source and search again. You should no longer find '.
Do not remove escaping altogether. Escaping once stops a double quote in a title from ending the content attribute of the meta tag early.
Ask Google to recrawl the pages
- Open Google Search Console for your store. You need to be an owner or full user of the property.
- Paste the address of a fixed page into the URL Inspection box at the top.
- Click Request indexing. There is a quota on requests, so start with your most visited pages.
- For many pages, leave Google to find the changes through your sitemap. Requesting the same page again does not make it faster.
Google says crawling can take anywhere from a few days to a few weeks, so results may show the old text for a while after the fix.
If that didn’t work
An SEO app adding its own tags
If the page source has two title tags or two meta descriptions, one comes from an app. Check the app’s settings and its app embed in the theme editor.
The heading on the page
Google can build a title link from the page’s main heading as well as the title tag. Check the h1 on the page for the same codes.
Google has not recrawled yet
If the page source is clean, the result in Google is an old copy. Check the date of the last crawl in the URL Inspection tool.
When to get help
If the page source shows the double escape but you cannot find it in theme.liquid or the meta tags snippet, it may come from an app or from code several files deep. The head of the theme is on every page, and a broken tag there can affect titles across the whole store. That is a sensible point to stop if you are not comfortable editing Liquid.
What a developer would check
- Every place the theme outputs the title, meta description and social tags.
- Apps and app embeds that add their own meta tags.
- SEO metafields and how they are output.
- Imported product data with escaped characters saved in it.
Describe the problem in your own words and WebFixed gives you an instant fixed quote. Nothing is charged until you accept it.
Related questions
- Why does the page look fine on my store but wrong in Google?
- The words on the page and the title and meta tags in the head are output by different code. Only the head tags are escaped twice, and those are what Google and link previews read.
- How long until Google shows the right title?
- Google says crawling can take from a few days to a few weeks. Requesting indexing in Search Console for the main pages can help, but it is never instant.
- Should I remove the escape filter completely?
- No. Escaping once is correct. Without it, a double quote in a title or description can end the meta tag’s content early and cut off the text.
Written by Michael Broadbridge, Founder of Webgro. First published 14 November 2026. Last checked 14 November 2026 on Shopify admin, Dawn theme 16.