Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Re: SUPPLY Theme: I would like to remove the shop name on my TITLE tag

Solved

SUPPLY Theme: I would like to remove the shop name on my TITLE tag

SweetsFR
Tourist
20 0 2

Hello! I would like to remove the shop name on my Title tag:

Capture d’écran 2020-08-30 à 18.59.14.png

As you can see on the screen shot, I got my title "Sweets kendamas FR - Acceuil" and shopify automatically add my shop name which is "sweetskendamas.france".

 

I would like to remove it!

 

My shop URL is: www.sweetskendamasfr.com

 

I checked on the theme code at "seo-title.liquid" and "social-meta-tags.liquid" but couldn't find how to remove it!

 

Thanks by advance for your time!

 

Accepted Solution (1)
JHKCreate
Shopify Partner
3571 638 931

This is an accepted solution.

@SweetsFR the following is adding the Shop's Name here:

{% unless page_title contains shop.name %}
– {{ shop.name }}
{% endunless %}


You should remove this and it should work ! 

Did we solve your issue? Like & Mark As Solution to help the community
Should you need any direct help: contact@jhkcreate.com

Learn more about us: jhkcreate.com

View solution in original post

Replies 10 (10)

JHKCreate
Shopify Partner
3571 638 931

Hi There!

Do the following:

  1. "Online Store"
  2. "Preferences"
  3. Replace "Homepage Title" & Meta Description as needed.

Let me know if it works!

Did we solve your issue? Like & Mark As Solution to help the community
Should you need any direct help: contact@jhkcreate.com

Learn more about us: jhkcreate.com
SweetsFR
Tourist
20 0 2

@JHKCreateAhah thank you but if it was there i would have change it! I have the good title here. But Shopify automatically add my shop name after my title tag , i don't know why.

JHKCreate
Shopify Partner
3571 638 931

Go to your theme.liquid file and check the meta title tag , paste it here so I can see. You're looking for references of {{shop.name}}

Did we solve your issue? Like & Mark As Solution to help the community
Should you need any direct help: contact@jhkcreate.com

Learn more about us: jhkcreate.com
SweetsFR
Tourist
20 0 2

If I go into:

Layout -> Theme.liquid :

<!-- Title and description ================================================== -->
<title>
{{ page_title }}{% if current_tags %}{% assign current_tags_joined = current_tags | join: ', ' %} &ndash; {{ 'general.meta.tags' | t: tags: current_tags_joined }}{% 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>

 

I didn't check the "theme.liquid" one cause I was first looking into:

 

Snippets -> seo-title.liquid :

{% capture seo_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 %}
{% endcapture %}

Thanks by advance for your help!

SweetsFR
Tourist
20 0 2

@JHKCreateI got no answer? Any chance you can help me out?

SweetsFR
Tourist
20 0 2

Anyone could help me out on this?

SweetsFR
Tourist
20 0 2

@JHKCreate I really need to fix this , please help me! 

JHKCreate
Shopify Partner
3571 638 931

This is an accepted solution.

@SweetsFR the following is adding the Shop's Name here:

{% unless page_title contains shop.name %}
&ndash; {{ shop.name }}
{% endunless %}


You should remove this and it should work ! 

Did we solve your issue? Like & Mark As Solution to help the community
Should you need any direct help: contact@jhkcreate.com

Learn more about us: jhkcreate.com
SweetsFR
Tourist
20 0 2

Worked out perfectly! Thank you for your help!!

Cafeniu1
New Member
4 0 0

Hi,

 

can you confirm me if i remove the following from the theme.liquid it will prevent the store name to be added to the Title Tag:

 

{%- unless escaped_page_title contains shop.name -%}
&ndash; {{ shop.name }}
{%- endunless -%}

 

the whole code around shop.name is the following: 
{%- endif -%}
{%- if current_page != 1 -%}
&ndash; {{ 'general.meta.page' | t: page: current_page }}
{%- endif -%}
{%- if settings.append_side_name_page_title -%}
{%- assign escaped_page_title = page_title | escape -%}
{%- unless escaped_page_title contains shop.name -%}
&ndash; {{ shop.name }}
{%- endunless -%}
{%- endif -%}

 

Also, will remove it from the Hompage as well? 

 

Thank you in advance for your time!