fbpx

How to remove my shop name from the title tag in Shopify

How to remove my shop name from the title tag in Shopify

How to remove my shop name from the title tag in Shopify

For Search Engine Optimization (SEO) reasons, some storeowners might not want to display their shop name in the title tag. Some experts suggest having a shop name that’s too long can negatively affect your SEO. 

You cannot make these changes from Settings. Instead, you have to tweak the code a little bit. Let’s take a look at how to do this. 

Removing shop name from the title tag 

To remove the shop name from the title tag, you have to look in the theme.liquid and then remove the title from where you don’t want it to be. For instance, if your theme.liquid code looks like 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 %}{% unless page_title contains shop.name %} &ndash; {{ shop.name }}{% endunless %}

  </title>

 

You can change it to the code given below to remove the shop name from the title tags. 

 <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>

 

The code will surely be different for each store. The key is to look for the code that is adding the shop name to the title tag. In most cases, it will look something like this: 

{% unless page_title contains shop.name %}

&ndash; {{ shop.name }}

{% endunless %}

 

Removing this code from the theme.liquid should remove the shop name from the title pages. If you’re still struggling with accomplishing this, contact a Shopify expert, and they’ll help you. 

Or, you can post your theme.liquid code in a community discussion like this, and someone with coding knowledge will help you figure out the script that needs to be removed.

Related Posts
Leave a Reply