Shopify adding my shop name at the end of meta titles

KrisG2
Excursionist
34 1 15

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.

<meta charset="utf-8">
 
<!--[if lt IE 9]>
<script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
 
<title>
{{ page_title }}{% if current_tags %}{% assign meta_tags = current_tags | join: ', ' %} &ndash; {{ 'general.meta.tags' | t: tags: meta_tags }}{% endif %}{% if current_page != 1 %} &ndash; {{ 'general.meta.page' | t: page: current_page }}{% endif %}{% unless page_title contains shop.name %} &ndash; {{ shop.name }}{% endunless %}
</title>
 
<script type="text/javascript">
document.documentElement.className = document.documentElement.className.replace('no-js', 'js');
</script>

 

Any help is appreciated! Many thanks.

Kris

Reply 1 (1)

PageFly-Richard
Shopify Partner
4164 935 1586

Hi @KrisG2

You can replace the code between <title> and </title> 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 😄 

Please let me know if it works by giving it a Like or marking it as a solution!


PageFly - #1 Page Builder for Shopify merchants.


All features are available from Free plan. Live Chat Support is available 24/7.