There are shop name to all pages of my website like below.
“… - Shopname”
How can i remove that ?
There are shop name to all pages of my website like below.
“… - Shopname”
How can i remove that ?
You have to edit the code in the theme.liquid and remove the title from where not required. I can look into it if you can give me the code of your theme.liquid
This is the code of meta tag.
{{ 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 %}Change your code to this
<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 %}
</title>
This will remove the shop name from the title hope it help
wow. thank you so much. it work good.
Hi, I could use some help with this question as well. Here is my code from theme.liquid :
{{ 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 %}
How do I Change that so the shop name is not part of the page title?
And , Why is this default? From the SEO I have read , having page titles too long can work against you?
Any insight into that would be apprecaited as well!
<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>
Change the above code with
<title>
{{ page_title }}{% if current_tags %} – tagged "{{ current_tags | join: ', ' }}"{% endif %}{% if current_page != 1 %} – Page {{ current_page }}{% endif %}
</title>
This might help
Thanks Prabhat !
thanks Prabhat, this code worked for my custom theme too.
hopefully this will help some SEO warnings.
Hi hoping someone can help us too - we have a paid for theme (Impulse from Archetype) and are having the same issue. We are seeing the shop name in front of our title in search results. See images attached - any help greatly appreciated. For information we made the change to the title around 6 weeks ago and have also requested the page be crawled by Google, but still no change
Did you find a solution?
It has worked, thanks so much!
doesnt work because my code doesn’t look like that
woooow, Thank you, Boss. Solved…
It works!!!
Hi Prabhat, my Meta Title is this:
{{ 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 -%}Can you please tell me how to remove the Shop Name from the Meta Tag? Thanks