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
Solved! Go to the solution
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
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
Hello,
I have the same problem but it didn't work delating – {{ 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: ', ' -%} – {{ '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>
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 -%}
– {{ shop.name }}
{%- endunless -%}
But it didn't work... What can i do?
Thanks
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: ', ' -%} – {{ '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>
{%- 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.
Do you have any recommendations for this problem?
Thank you very much
Best Aydin
User | Count |
---|---|
23 | |
19 | |
18 | |
17 | |
16 |