All things Shopify and commerce
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.
<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 %}
</title>
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
woooow, Thank you, Boss. Solved....
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 : <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>
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, 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
It has worked, thanks so much!
It works!!!
Thanks Prabhat !
doesnt work because my code doesn't look like that
Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024Digital marketers and app developers have tracked activity in apps and websites for yea...
By Ollie Mar 13, 2024February was an exciting month with Shopify Editions, informative webinars, and more! F...
By JasonH Mar 7, 2024