Shopify adding my shop name at the end of meta titles

KrisG2
Excursionist
29 1 14

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

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  

CRO Expert at PageFly - Advanced Shopify Page Builder - Empowering 90.000+ active merchants.

Check our Evergreen Guide on Moving Your Brick-n-Mortar Store Online.

Want To Strive The Coolest E-commerce Knowledge? Explore Our FREE Video Resources.