How can I make my store name appear in page titles?

Hi there!

I’ve seen a few posts asking this question, and all are fixed by finding the tag or {{ page_title }}.

However I can’t find anything like this in the theme.liquid, only the first line ‘if page_title == challenge’ which doesn’t seem to reference ‘store name’ anywhere. (I’m actually not sure where that code comes from.

I’ve pasted code below, would really appreciate some help! (sorry if I haven’t pasted correctly, I’m a complete novice with code)

{%- if page_title == 'Challenge' -%}
  {%- assign is_design_mode = true -%}
{%- endif -%}

  
{% capture document %}

  
  

  
  {% include 'head' %}
  {%- if settings.layout_include_weglot_app -%}
    {% capture weglot_includes %}
      {% include 'weglot_hreftags' %}
      {% include 'weglot_switcher' %}
    {% endcapture %}
  {%- endif -%}
  {%- if is_design_mode -%}
    
{{ content_for_header }}
    {{ weglot_includes }}
  {%- else -%}
    {% capture get_content_for_header %}    
{{ content_for_header }}
      {{ weglot_includes }}
    {% endcapture %}
  {%- endif -%}
 {% include 'azexo-header-scripts' %} 

{% include 'globo.formbuilder.scripts' %}

This looks like one possibility:

{% include 'head' %}

Maybe look in your Snippets folder for head.liquid and see what’s in there.

Thank you so much Kieran!

I did try removing the code you suggested, but the website simply disappeared and had black boxes on the page instead.

Next I looked in the snippets and found it there - thanks!

This is the code in head.liquid below… I removed a lot of the’capture seo title’ bit so that now it only says:

{%- capture seo_title -%}
{{ page_title }}
{%- endcapture -%}

The titles haven’t updated in google search yet, maybe it takes a bit of time?


{%- if settings.favicon != blank -%}
    
{%- endif -%}
{%- capture seo_title -%}
    {{ page_title }}
    {%- 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 -%}
   
{%- endcapture -%}
{%- if template contains 'gift_card' -%}
    {%- assign formatted_initial_value = gift_card.initial_value | money_without_trailing_zeros: gift_card.currency -%}
    {%- assign formatted_initial_value_stripped = formatted_initial_value | strip_html -%}
    
    
{%- else -%}
    
    {%- if page_description -%}
        
    {%- endif -%}
{%- endif -%}
{% include 'head-get-social-meta-tags' %}
{% include 'css-bootstrap' %}
{% include 'css-start-styles' %}
{% include 'js-loader' %}

Yeah google will take some time to recrawl and update their index.

Easy way to check is by looking at the page titles in here:

Or at scale, you can get ScreamingFrog (desktop app) and crawl the first 500 URLs free to see what the titles are.

Glad it worked though! But yeah gotta be careful with live theme changes, plenty can go wrong. Always backup before changing anything, look at Shopify’s file rollback feature - its pretty handy too.

I did a crawl with screaming frog and they are appearing correctly, thanks so much for all your help, much appreciated!!