To continue receiving payouts, you need to secure your account by turning on two-step authentication. If two-step authentication is not turned on your payouts will be paused. Learn more

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 10 (10)
Prabhat
Shopify Expert
82 8 22

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
82 8 22

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
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
82 8 22
<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
Jamie_van_Dam
Tourist
5 0 2

Thanks Prabhat ! 

TopDealsOnline
New Member
1 0 0

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

 

hopefully this will help some SEO warnings.

bowsbaby
New Member
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
New Member
1 0 0

@bowsbaby 

Did you find a solution?