&amp showing on my website URL on Google

Topic summary

A Shopify store owner noticed &amp appearing instead of & in their website title when viewing it on Google, making the site look unprofessional. The issue involved HTML entity encoding of the ampersand character in the site title “Pigeon Post Military Surplus & Supply.”

Key findings:

  • The &amp entity appeared in the og:title meta tag in the source code
  • The user couldn’t locate where to edit this in their Liquid theme files
  • A suggested solution involved using Liquid variables with a replace filter to handle the ampersand encoding

Resolution:
After contacting Shopify support, the issue turned out to be device-specific. The title displayed correctly on:

  • Support staff’s devices and phones
  • A friend’s phone
  • Another computer

The &amp only appeared incorrectly on the original poster’s work computer and personal phone, suggesting a local caching or browser issue rather than an actual site problem. The issue resolved itself without code changes.

Summarized with AI on November 1. AI used: claude-sonnet-4-5-20250929.

Hi, Can anyone help me? I was checking my website on Google, and it is showing &amp instead of & in the name of my website title. I checked my liquid (HTML) and cannot find the &amp to change to (“&”). It does not show that anywhere. What can I do to get rid of this? It makes my website very unprofessional.

This shows on Liquid

if (window.MSInputMethodContext && document.documentMode) { Does the && mean anything? That's all I could find. Thanks

hello @PigeonPM
Does your title contains & keyword in it? if not share your website URL. Thanks

It has the & in the title, I contacted the third party I use he said it was on the Shopify side, I just don’t know where to look. In store details it looks correct.

When you have a & in your title and you wrote it statically shopify automatically encodes that. check your title tag in theme.liquid and instead of static page title do this.
{%assign page_title = “Me and Pigoen”%}
{{ page_title | replace: ‘&’, ‘&’ }}

and use liquid variable page_title in your title tag {{page_title}} . I hope this solves the issue.

I found this in my source code, but it won’t let me change it on the source code page.

But I cannot find anything like this in the Liquid area, nothing shows there with a &amp to even change it.

I am not a tech person at all, this is all very confusing to me, I don’t even know where to code this in liquid. I see nothing that states the title in liquid, only on my source code page.

can you remove this amp

Else I need to check your theme files to get this issue fixed.

Actually, This is so weird I contacted Shopify support they looked into it, it was showing up correctly on her end, she checked her phone and it was also correct. Plus she checked a colleague’s phone, it showed correctly. I checked a friend’s phone as well as another computer it came up correct. So it only shows on my work computer and my phone incorrectly? So I guess it is all good! Thank you for your time!

1 Like