How can I remove the store name from all page titles on my site?

My site is currently showing the store name before the title I have set so I need to know how to remove it and also know that each theme is slightly different. This is the current code -

{{ page_title }} {%- if current_tags %} – tagged "{{ current_tags | join: ', ' }}"{% endif -%} {%- if current_page != 1 %} – Page {{ current_page }}{% endif -%} {%- unless page_title contains shop.name %} – {{ shop.name }}{% endunless -%}

What would I change this to to get rid of the store name on all Titles?

Many thanks in advance for any help anyone can give.

Matt

2 Likes

@mattaber
remove this code {{ page_title }}

I want to remove the store name not the page title?

Tried that but it removes the page title I have set I want to keep that but remove the store name?

Many Thanks

Matt

@mattaber
{{ shop.name }}remove this.

@mattaber

Find below code in theme.liquid and remove bold text that i highlight here:

– {{ shop.name }}

1 Like