How to remove shop name from title tag ?

Tepparit_Kacha
Tourist
26 0 3

There are shop name to  all pages of my website like below.

".................................... - Shopname"

How can i remove that ?

Replies 14 (14)

Prabhat
Shopify Expert
83 8 28

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

Solution Expert
- Did I solved your issue? Like & Mark As Solution to help the community

Tepparit_Kacha
Tourist
26 0 3

This is the code of meta tag.

  <title>
    {{ page_title }}{% if current_tags %}{% assign meta_tags = current_tags | join: ', ' %} &ndash; {{ 'general.meta.tags' | t: tags: meta_tags }}{% endif %}{% if current_page != 1 %} &ndash; {{ 'general.meta.page' | t: page: current_page }}{% endif %}{% unless page_title contains shop.name %} &ndash; {{ shop.name }}{% endunless %}
  </title>

Prabhat
Shopify Expert
83 8 28

Change your code to this 

  <title>
    {{ page_title }}{% if current_tags %}{% assign meta_tags = current_tags | join: ', ' %} &ndash; {{ 'general.meta.tags' | t: tags: meta_tags }}{% endif %}{% if current_page != 1 %} &ndash; {{ 'general.meta.page' | t: page: current_page }}{% endif %}
  </title>

This will remove the shop name from the title hope it help

Solution Expert
- Did I solved your issue? Like & Mark As Solution to help the community
AbdulCMK45
Visitor
1 0 0

woooow, Thank you, Boss. Solved....

Tepparit_Kacha
Tourist
26 0 3

wow. thank you so much. it work good. 🙂

Jamie_van_Dam
Tourist
5 0 2

Hi, I could use some help with this question as well. Here is my code from theme.liquid :  <title>
  {{ page_title }}{% if current_tags %} &ndash; tagged "{{ current_tags | join: ', ' }}"{% endif %}{% if current_page != 1 %} &ndash; Page {{ current_page }}{% endif %}{% unless page_title contains shop.name %} &ndash; {{ 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! 

 

 

Prabhat
Shopify Expert
83 8 28
<title>
  {{ page_title }}{% if current_tags %} &ndash; tagged "{{ current_tags | join: ', ' }}"{% endif %}{% if current_page != 1 %} &ndash; Page {{ current_page }}{% endif %}{% unless page_title contains shop.name %} &ndash; {{ shop.name }}{% endunless %}
  </title>

Change the above code with 

<title>
  {{ page_title }}{% if current_tags %} &ndash; tagged "{{ current_tags | join: ', ' }}"{% endif %}{% if current_page != 1 %} &ndash; Page {{ current_page }}{% endif %}
  </title>

This might help

Solution Expert
- Did I solved your issue? Like & Mark As Solution to help the community
TopDealsOnline
Visitor
1 0 1

thanks Prabhat, this code worked for my custom theme too.

 

hopefully this will help some SEO warnings.

bowsbaby
Visitor
1 0 0

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

 

 

Capture.PNGCapture2.PNG

AhmadShabaneh
Visitor
1 0 0

@bowsbaby 

Did you find a solution?

Jemmy
Visitor
1 0 0

It has worked, thanks so much!

frankymartin
Shopify Partner
29 0 17

It works!!!

Jamie_van_Dam
Tourist
5 0 2

Thanks Prabhat ! 

miraluck
New Member
4 0 0

doesnt work because my code doesn't look like that