Delate store name from homepage SEO title

kilinbolo
Tourist
7 0 1

Hello,

I have noticed two things when searching my website on google:

1.- The homepage shows the name of my store FIRST and then what i have inputted as my homepage title. So google shows something like this: "Mystore name: my title" , when in fact i only want to be seen "my title", that is what i have inputted as my homepage title in shopify settings.

2.- With the rest of the pages (products, bogs etc) SEO titles, it adds my store name at the END like this: "title - Mystore name". As this is at then end i don't mind to keep it.

How can i remove this two problems? Specially point 1?

I have debut theme and my code in theme.liquid is as follow:


{%- capture seo_title -%}
{%- if request.page_type == 'search' and search.performed == true -%}
{{ 'general.search.heading' | t: count: search.results_count }}: {{ 'general.search.results_with_count' | t: terms: search.terms, count: search.results_count }}
{%- else -%}
{{ page_title }}
{%- endif -%}
{%- if current_tags -%}
{%- assign meta_tags = current_tags | join: ', ' -%} – {{ 'general.meta.tags' | t: tags: meta_tags -}}
{%- endif -%}
{%- if current_page != 1 -%}
– {{ 'general.meta.page' | t: page: current_page }}
{%- endif -%}
{%- assign escaped_page_title = page_title | escape -%}
{%- unless escaped_page_title contains shop.name -%}
– {{ shop.name }}
{%- endunless -%}
{%- endcapture -%}
<title>{{ seo_title | strip }}</title>


Thank you

JHKCreate
Shopify Partner
2046 331 445

Hi There!

For point #1 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
0 Likes
kilinbolo
Tourist
7 0 1

Hi There!

Thanks for your answer. Maybe i didn't explain myself correctly but that is not the problem.

To whatever i write here -> "Online Store" - "Preferences" - "Homepage Title" , then in google appears what i wrote in "Homepage Title" plus my store name at the beginning. So it doesn't matter what i write in "Homepage Title" , it always appears my store name at the beginning of whatever i write as "Homepage Title".

 

I think that what i have to do is delate the following code from my theme.liquid code:

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

 

Thanks

0 Likes
JHKCreate
Shopify Partner
2046 331 445

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
0 Likes
kilinbolo
Tourist
7 0 1

I have debut theme and my code in theme.liquid is as follow:


{%- capture seo_title -%}
{%- if request.page_type == 'search' and search.performed == true -%}
{{ 'general.search.heading' | t: count: search.results_count }}: {{ 'general.search.results_with_count' | t: terms: search.terms, count: search.results_count }}
{%- else -%}
{{ page_title }}
{%- endif -%}
{%- 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>


Thank you

0 Likes
Anunnaki
New Member
2 0 0

I am having the same issue too.

The SEO title has always been "Homepage Title - Shop Name" but our homepage's SEO turns into "Shop Name: Homepage Title" recently.

The SEO ranking of our homepage got affected significantly ever since.

I haven't changed our shop's meta title or meta description at all.

Does anyone know what is happening?

Thank you.

0 Likes