All things Shopify and commerce
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!
Solved! Go to the solution
This is an accepted solution.
@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 !
Hi There!
Do the following:
Let me know if it works!
@JHKCreateAhah 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 :
<!-- Title and description ================================================== -->
<title>
{{ 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 %}
</title>
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!
Anyone could help me out on this?
This is an accepted solution.
@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 !
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!
Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024