FROM CACHE - en_header

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

 

Accepted Solution (1)

Accepted Solutions
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: ', ' -%} – {{ '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


 

View solution in original post

Replies 10 (10)
gseilei
Shopify Expert
235 28 41

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

We help you achieve your Goals! Visit us on: Webmefy.com
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


 

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

 

luxuriaistanbul
Excursionist
33 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

electroarcade
Excursionist
12 0 15

Hi, Google will update your meta snippets to what it thinks is most relevant. This is based on the page content and may differ based on each person's search criteria.

So just because you state what your meta title and description are doesn't always mean Google will show that for each search result.

Hope this helps.

Paul

Jason
Shopify Expert
10918 193 2191

@diego_ezfy I get the desire to get traffic to your own site but moving people off shopify does rather diminish the value of these forums. Any reason why the solution can't be posted here in the spirit of community?

★ I jump on these forums in my free time to help and share some insights. Not looking to be hired, and not looking for work. http://freakdesign.com.au ★
luxuriaistanbul
Excursionist
33 0 4

hi,

 

thank you for feedback. I am using debut theme and removed the following 4 lines of code.  Should I remove everything below and just add following?

 

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

 

Here is my code from debut.theme:

{%- if canonical_url != blank -%}
<link rel="canonical" href="{{ canonical_url }}">
{%- endif -%}

{%- if settings.favicon != blank -%}
<link rel="shortcut icon" href="{{ settings.favicon | img_url: '32x32' }}" type="image/png">
{%- endif -%}

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

 

I have also other problem, google is showing the 4 th page, even if canonization is active.

vazo-collection.jpg

Derek09
Excursionist
16 0 4

I i have the same problem but i just want to remove the title from the Homepage Title not the other urls

I have the venture theme!

HawkLou
Excursionist
15 0 6

Great solution worked perfectly thank you...