Hello,
I’ve recently set up my shop which is now just over a month old. I’ve been doing some analysis and see that the shop name and tags are being pulled through in the page title in search engines (picture below - the highlighted sections are the additional information that is being pulled and not what I set).
After having a look through the Shopify community I’m certain it’s something to do with the theme’s liquid code. I’m currently using the Debut theme.
I’ve gone into the code however my code knowledge is limited so I’m unsure what I need to change in order to remove (I’m not too precious about my store name showing in the page title but the tags are a big priority to remove). Am I right in saying it’s something to do with the below piece of 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 }}
{%- 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 }}
If someone could steer me in the right direction to amends that’d be great.
Thanks