How do I remove the store name from my URLs?

Solved
SnoozeShade_HQ
Tourist
7 1 0

Hi there

 

I was just checking how my brand name appeared on Google and I notice that at the end of every Page Title it puts my store name?

How do I get rid of it? I have Debut as my theme.

 

Thanks in advance?

 

Cara 

 

Screenshot 2020-04-07 18.08.15.png

 

0 Likes
gseilei
Shopify Expert
230 28 37

Hi,

 

go to your code and change this on the theme.liquid page:

 

{%- 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 }} --> Delete this line
{%- endunless -%}
{%- endcapture -%}
<title>{{ seo_title | strip }}</title>

 

However think that this has an impact on the SEO of your page. I would only change it if you have consider this. If you want some help just write as at info@webmefy.com

We help you achieve your Goals! Visit us on: Webmefy.com
0 Likes
SnoozeShade_HQ
Tourist
7 1 0

This is an accepted solution.

Thanks very much - will try this.


@gseilei wrote:

Hi,

 

go to your code and change this on the theme.liquid page:

 

{%- 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 }} --> Delete this line
{%- endunless -%}
{%- endcapture -%}
<title>{{ seo_title | strip }}</title>

 

However think that this has an impact on the SEO of your page. I would only change it if you have consider this. If you want some help just write as at info@webmefy.com


 

0 Likes
kilinbolo
Tourist
7 0 1

Hello,

I have the same problem but it didn't work delating  &ndash; {{ shop.name }}



I also have another similar problem in the seo title of my homepage. In this case it appears the name of my store name at the beginning yet I don't have my store name in my title tag in the SEO section of my pages.  How can i remove it?

This si the code of my debut theme:

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

I tried delating this part in order to solve both problems (store name at the beginning in the seo title of my homepage and store name at the end of the rest of the pages):

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

 

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

 

Thanks

 

0 Likes
luxuriaistanbul
Excursionist
32 0 4

Hello!

I have currently the problem, that my seo related meta titles and descriptions are not synched to google. Somehow someting in the code is overwrite my seo fields.

I am using also debut theme and the code looks like this:

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

{%- if page_description -%}
<meta name="description" content="{{ page_description | escape }}">
{%- endif -%}
{% include 'social-meta-tags' %}

 

Here is one example for a collection page. I have the same problem with product pages as well. 

lobjet-collectionpage-google.png

Do you have any recommendations for this problem?

 

Thank you very much

Best Aydin

0 Likes