Hi, I want to remove the store name from the meta titles.
I am using the theme Horizon.
I go to check in the layout my theme.liquid file:
-
I go to Online Store > Themes > Edit Code
-
I open layout/theme.liquid
But I cannot see there anything that says page title or anything similar so I am lost.
Where can I edit this in order to remove the store name from the meta titles?
Thank you very much for your help!
Hi @Kmspositivos
Ii is in file snippets/meta-tags.liquid , scroll down a bit and find this section
<title>
{{ page_title }}
{%- if current_tags %} – tagged "{{ current_tags | join: ', ' }}"{% endif -%}
{%- if current_page != 1 %} – Page {{ current_page }}{% endif -%}
{%- unless page_title contains shop.name %} – {{ shop.name }}{% endunless -%}
</title>
and remove line before closing title tag so it looks like
<title>
{{ page_title }}
{%- if current_tags %} – tagged "{{ current_tags | join: ', ' }}"{% endif -%}
{%- if current_page != 1 %} – Page {{ current_page }}{% endif -%}
</title>
That will remove the store name.
Hi Laza, thank you very much for your help. I have remove the line.
I have checked in google but it is still apearing the store name. Do you know how much time does it take to be refreshed or should it be automatically?
Thank you very much!
Well, it depends, until next crawl. A couple of days, but I think you can also trigger it from your Google Search console.
People spend a lot of time and energy trying to get Google to recognize their store name.
Online Store-Preferences
You can see it from meta-tags.liquid file, but if you remove that code, it will affect the title of other pages.
So I recommend you change store name in your store admin > Settings > Store details