Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
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 -%}
Thank you very much!
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
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!
2m ago Learn the essential skills to navigate the Shopify admin with confidence. T...
By Shopify Feb 12, 2025Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025