I see a lot of people asking this, a few suggestions but all are either specific to a theme or linking externally to 404 errors.
Shopify is adding " - Belleville Boot Store" to every page title making them way too long.
Here is the theme.liquid file and what I suspect is the culprit, however I have no idea what to do to get rid of it and what to replace that line of code with below. Any assistance would be GREATLY appreciated.
@imafkingmarine - you can try by commenting the code rather than deleting it
I have no idea what you mean. Commenting instead of deleting code? Do you mean list the code in a comment like this:
{%- if t_name != ‘list-collections’ -%}
{%- capture seo_title -%}
{%- if template == ‘search’ and search.performed == true -%}{{ ‘search.general.heading’ | t: count: search.results_count }}: {{ ‘search.results_with_count_and_term’ | t: terms: search.terms, count: search.results_count }}{%- elsif template == ‘search.wishlist’ %}{{ ‘wishlist_page.meta’ | t }}{%- elsif template == ‘search.compare’ %}{{ ‘compare_page.meta’ | t }}{%- 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 }}
{%- else -%}
{{ 'list_collections.meta_title' | t | escape }}
{%- endif -%}
{%- render ‘meta-tags’, t_name: t_name -%}
tim_1
April 30, 2025, 3:49pm
4
Just remove this line:
{%- unless escaped_page_title contains shop.name %} – {{ shop.name }}{%- endunless -%}
You can comment it out like this:
{% comment %}
{%- unless escaped_page_title contains shop.name %} – {{ shop.name }}{%- endunless -%}
{% endcomment %}
Outstanding, thank you very much. I replaced that line of code with your comment section snippet and it appears to have worked perfectly. Greatly appreciated.