What's your biggest current challenge? Have your say in Community Polls along the right column.

Re: Remove Business Name from Title Tag

Is it okay to delete specific code to remove business name from title tag?

Cafeniu1
New Member
4 0 0

Hello Community,

 

I would like to remove the Business name from the Title Tag and please help me by confirming that it is ok to delete the following piece of code from theme.liquid: 

 

{% unless page_title contains shop.name %} – {{ shop.name }} {% endunless %}

 

My code looks like:

 

{%- endif -%}
{%- if settings.append_side_name_page_title -%}
{%- assign escaped_page_title = page_title | escape -%}
{%- unless escaped_page_title contains shop.name -%}
– {{ shop.name }}
{%- endunless -%}
{%- endif -%}

 

Screenshot_14.jpg

 Thank you very much!

Replies 2 (2)

Timo_Krause
Excursionist
28 3 9

You can remove this without further problems, but then also remove the unless around it, so

 

{%- unless escaped_page_title contains store.name -%}
– {{ store.name }}
{%- endunless -%}

 

Because without content the query makes no sense 😉

 

Best regards,

Timo

Do not wait for success, it is the result of your actions || Warte nicht auf Erfolg, der ist das Ergebnis deines Handelns
Cafeniu1
New Member
4 0 0

Hi Timo, you mean shop.name in my case, right? 😶

 

Other than that I need to do anything in order to prevent the Shop Name to be automatically added to the Title Tag?

 

Thank you for your time!