How can I remove my store name from my homepage title?

when searching on google my homepage title contains my store name first then shows what i have inputted as my homepage title.

i want to remove my store name from appearing

here is the theme.liquid code

{{ page_title }}{% if current_tags %}{% assign current_tags_joined = current_tags | join: ', ' %} – {{ 'general.meta.tags' | t: tags: current_tags_joined }}{% endif %}{% if current_page != 1 %} – {{ 'general.meta.page' | t: page: current_page }}{% endif %}{% unless page_title contains shop.name %} – {{ shop.name }}{% endunless %}

{% if page_description %}

{% endif %

do i just delete this part

{% endif %}{% unless page_title contains shop.name %}

do i havetp replace it with something?

nervous about changing the code!!

Hey, spflynn!

Lizzy here, I’m one of the Gurus from the support team at Shopify.

If you’d like to remove your store name from your store’s title you’re almost right about the code you would need to delete. You’ll want to remove this chunk:

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

I know you mentioned that you’re nervous about editing your code. I always like to suggest duplicating your theme before making any changes. You can do this by going to Online Store>Actions>Duplicate. That way you’ve got a backup if anything doesn’t go as expected!

Any changes you make on your site, can take a bit of time to be reflected in Google search results. To speed up the process you can request that they crawl your site again.

Does this help with the edits you’re wanting to make? If you have any other questions about it let me know.

Thank you, :slight_smile:

Lizzy

Hi Lizzy, thanks for you response.

I have a similar problem, when I search my store on google the title of the home page contains duplicated store name as you can see at the photo attached

I removed the code you suggested and waited more than 12 hours but duplicated title keeps on results page.

Can you help?

Thanks.

Hello

I have the same problem. My homepage seo title shows my store name at the beginning and my other pages shows my store name at the end. Although i have not my store name in any of the pages.

My code in theme.liquid of debut theme is the following:

{%- 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 -%}

{{ seo_title | strip }}

I have tried delating the following:

{%- unless escaped_page_title contains shop.name -%}
– {{ shop.name }}
{%- endunless -%}

But it didn’t work. What can i do?

Thanks

I have the same problem with the SEO of my Shopify store.
Currently, my shop name appears before my homepage title.
In an attempt to improve the SEO of my homepage, I want to find a technical solution so that the name of my shop appears after the title of my homepage.
I don’t want to delete the name of my store but just change its display for Google results.
I tried to add the name of my shop after the title of my homepage in the backoffice but it is not taken into account by Google.
I also tried to modify the code of my theme.liquid file but these modifications unfortunately have no impact: the name of the shop always appears first, before the title of my homepage. The first words of my homepage title correspond to my main keyword for SEO, which is why I would like them to appear first instead of my shop name which is less relevant for SEO.

Do you have a technical solution to this problem?

Thanks.

Here is the theme.liquid code:

{%- 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 }}
{%- elsif request.page_type == ‘list-collections’ -%}
{{ settings.list_collection_meta_title | default: page_title }}
{%- 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 -%}
{%- if settings.append_side_name_page_title -%}
{%- assign escaped_page_title = page_title | escape -%}
{%- unless escaped_page_title contains shop.name -%}
– {{ shop.name }}
{%- endunless -%}
{%- endif -%}
{%- endcapture -%}

{{ seo_title | strip }}