Top

Change the Page Title from Welcome

Here is an SEO friendly way to display a page title on the Store Locator page.

1
In the theme.liquid file, look for the block of code where the page title is displayed. It may look similar to this example:
<title>
{% if template == "404" %}Page not found
{% elsif template == 'index' %}{{ shop.name }} - {{ page_title }}
{% else %}{{ page_title }} - {{ shop.name }}
{% endif %}
</title>
2
Add the highlighted code within that block of code, like this:
<title>
{% if template == "404" %}Page not found
{% elsif template == 'index' %}{{ shop.name }} - {{ page_title }}
{% elsif store_locator_title %}{{ store_locator_title }}
{% else %}{{ page_title }} - {{ shop.name }}
{% endif %}
</title>
3
In the Store Locator app Display Settings, add this code to the Page Footer HTML text area:
{% assign store_locator_title = " ** page title **" %}
Just change the page title to anything you choose!
Have more questions? Submit a request