Hello! I would like to remove the shop name on my Title tag:
As you can see on the screen shot, I got my title “Sweets kendamas FR - Acceuil” and shopify automatically add my shop name which is “sweetskendamas.france”.
I would like to remove it!
My shop URL is: www.sweetskendamasfr.com
I checked on the theme code at “seo-title.liquid” and “social-meta-tags.liquid” but couldn’t find how to remove it!
Thanks by advance for your time!
@JHKCreate Ahah thank you but if it was there i would have change it! I have the good title here. But Shopify automatically add my shop name after my title tag , i don’t know why.
Go to your theme.liquid file and check the meta title tag , paste it here so I can see. You’re looking for references of {{shop.name}}
If I go into:
Layout → Theme.liquid :
{{ page_title }}{% if current_tags %}{% assign current_tags_joined = current_tags | join: ', ' %} – {{ 'general.meta.tags' | t: tags: current_tags_joined }}{% endif %}{% if current_page != 1 %} – {{ 'general.meta.page' | t: page: current_page }}{% endif %}{% unless page_title contains shop.name %} – {{ shop.name }}{% endunless %}
I didn’t check the “theme.liquid” one cause I was first looking into:
Snippets → seo-title.liquid :
{% capture seo_title %}
{{ 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 %}
{% endcapture %}
Thanks by advance for your help!
@JHKCreate I got no answer? Any chance you can help me out?
Anyone could help me out on this?
@JHKCreate I really need to fix this , please help me!
@SweetsFR the following is adding the Shop’s Name here:
{% unless page_title contains shop.name %}
– {{ shop.name }}
{% endunless %}
You should remove this and it should work !
2 Likes
Worked out perfectly! Thank you for your help!!
Hi,
can you confirm me if i remove the following from the theme.liquid it will prevent the store name to be added to the Title Tag:
{%- unless escaped_page_title contains shop.name -%}
– {{ shop.name }}
{%- endunless -%}
the whole code around shop.name is the following:
{%- endif -%}
{%- if current_page != 1 -%}
– {{ ‘general.meta.page’ | t: page: current_page }}
{%- endif -%}
{%- if settings.append_side_name_page_title -%}
{%- assign escaped_page_title = page_title | escape -%}
{%- unless escaped_page_title contains shop.name -%}
– {{ shop.name }}
{%- endunless -%}
{%- endif -%}
Also, will remove it from the Hompage as well?
Thank you in advance for your time!