Shopify adding my shop name at the end of meta titles

Hi everyone,

Shopify is adding my shop name at the end of meta titles, pushing them over the 55 character limit. How do I stop this?

So for example: Ordering A Bespoke Sign Online | What To Expect | Resources

turns into on google…

Ordering A Bespoke Sign Online | What To Expect | Resources – The Bespoke Sign House

This is my website: https://thebespokesignhouse.com/

I believe it’s something to do with this {{shop.name}} part of my code from the theme.liquid file, but not sure what to change.

{{ page_title }}{% if current_tags %}{% assign meta_tags = current_tags | join: ', ' %} – {{ 'general.meta.tags' | t: tags: meta_tags }}{% endif %}{% if current_page != 1 %} – {{ 'general.meta.page' | t: page: current_page }}{% endif %}{% unless page_title contains shop.name %} – {{ shop.name }}{% endunless %}

Any help is appreciated! Many thanks.

Kris

1 Like

Hi @KrisG2 ,

You can replace the code between and tag with this code

<title>{% if template contains "index" %}{{ page_title }}{% else %}{{ page_title }}{% if current_tags %} {{ 'general.meta.tagged_html' | t: tags: meta_tags }}{% endif %}{% if current_page != 1 %} {{ 'general.meta.page' | t: page_number: current_page }}{% endif %}{% endif %}</title>

Let me know if my answer is of any help with a thumb up or like :grinning_face_with_smiling_eyes:

2 Likes

This works, thanks!