How to remove shop name from showing in page title?

mochi8
New Member
5 0 0

Hi Guys,

So right now my store name is showing 2 time. how do i remove it? as is bad for seo.

i am sure i only set the page title as "Best Fish Shop in India | My Store Name"

 

But no matter what i see in page it will show as the below. which have the extra "-My Store Name"

Best Fish Shop in India | My Store Name - My Store Name

Replies 6 (6)

diego_ezfy
Shopify Partner
2958 568 891

@mochi8 

Hi Mochi, 

Just follow this tutorial. Please let me me know if you need any further assistance.

Kind regards,
Diego

mochi8
New Member
5 0 0
 
I think the above dont work for me? as i can see too many <title> tag not sure which to remove.
 
<!doctype html>
<!--[if IE 9]> <html class="ie9 no-js" lang="{{ shop.locale }}"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html class="no-js" lang="{{ shop.locale }}"{% if settings.rtl_enable %} dir="rtl"{% endif %}> <!--<![endif]-->
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width,initial-scale=1">
  <meta name="theme-color" content="{{ settings.theme_color }}">
  <link rel="canonical" href="{{ canonical_url }}">  
  
  {%- if settings.favicon_enable -%}
  <link rel="shortcut icon" href="{{ 'favicon.png' | asset_url }}" type="image/png" />
  {%- endif -%}
  
  {%- 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 -%}
    {%- assign escaped_page_title = page_title | escape -%}
    {%- unless escaped_page_title contains shop.name -%}
      &ndash; {{ shop.name }}
    {%- endunless -%}
  {%- endcapture -%}
  <title>{{ seo_title | strip }}</title>
 
  {%- if page_description -%}
    <meta name="description" content="{{ page_description | escape }}">
  {%- endif -%}
 
  {%- include 'social-meta-tags' -%}
  {%- include 'header-css' -%}
 
  {{ content_for_header }}
  {%- include 'oldIE-js' -%}
  {%- include 'header-js' -%}
 
  {% comment %} If you store has customer accounts disabled, you can remove the following JS file {% endcomment %}
  {%- if template contains 'customers' or 'cart' -%}
  <script src="{{ 'shopify_common.js' | shopify_asset_url }}"></script>
  {%- endif -%}  
</head>
diego_ezfy
Shopify Partner
2958 568 891

@mochi8 

There is only one title tag in your code,

  <title>{{ seo_title | strip }}</title>

Replace the line above with this:

<title>{% if template contains "index" %}{{ page_title }}{% else %}{{ page_title }}{% if current_tags %} {{ 'general.meta.tagged_html' | t: tags: meta_tags }}{% endif %}{% if current_page != 1 %} {{ 'general.meta.page' | t: page_number: current_page }}{% endif %}{% endif %}</title>
mochi8
New Member
5 0 0

Great! Thanks for the help! is solved!!

diego_ezfy
Shopify Partner
2958 568 891

@mochi8 

You're welcome!

Please don't forget to click on the button "Accept as Solution" below my answer to help other people in the community with similar issues.

Kind regards,
Diego

Andrewjn220
Excursionist
16 0 5

Hello I cannot find <title> in theme.liquid or elsewhere. Where are in the Streamline theme by Archetype. Any insight?