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
235 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
electroarcade
New Member
6 0 0

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

0 Likes

@luxuriaistanbul 

Have you tried this solution instead? Let me know if it works for you. 

Kind regards,
Diego

◦ Problem Solved? ✔️ Please click on Accept as Solution and like.
◦ Add a slider to product page images: Minimal theme | Debut theme | Brooklyn theme
◦ Contact: ezfycode@gmail.com.
0 Likes
Jason
Shopify Expert
10263 142 1940

@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 to help and share some insights. Not looking to be hired, and not looking for work.

Don't hand out staff invites or give admin password to forum members unless absolutely needed. In most cases the help you need can be handled without that.


★ http://freakdesign.com.au ★
0 Likes