How do I remove the store name from all Titles?

Solved
lucyb1
New Member
2 0 0

All my meta titles are showing our store name after the META title, which is giving us errors for having too long titles. 

This is all that is in the theme.liquid code:

{% include 'seo-title' %}
<title>{{ seo_title }}</title>

I'm not sure what to do. Thanks!

0 Likes

@lucyb1 

Please refer to this link with a detailed tutorial, let me know if it works.

Kind regards,
Diego

◦ Product page slider & thumbnails with swiping for free themes: Minimal | Debut | Brooklyn | Supply
◦ Replace apps with simple copy/paste code snippets. Examples clicking here.
lucyb1
New Member
2 0 0

Thank you Diego, Do I also remove the line above the title tags:  {% include 'seo-title' %} ?

Thanks!

0 Likes

This is an accepted solution.

@lucyb1 this is probably coming from an app, I am not sure whether it is changing your title.

 

I'd suggest to first not remove it and check, if the issue persists, then you can remove it too! 

◦ Product page slider & thumbnails with swiping for free themes: Minimal | Debut | Brooklyn | Supply
◦ Replace apps with simple copy/paste code snippets. Examples clicking here.
sh0pifyuser52
New Member
2 0 0

I've seen a lot of solutions for removing the store name from every single title tag, but what if I just want to remove it from our blog pages?

0 Likes

@sh0pifyuser52 

You can follow these steps but use this code instead:

  
  {% if request.page_type == 'article' %}
 <title>{% if template contains "index" %}{{ page_title }}{% else %}{{ page_title }}{% if current_tags %} {{ 'general.meta.tagged_html' | t: tags: meta_tags }}{% endif %}{% if current_page != 1 %} {{ 'general.meta.page' | t: page_number: current_page }}{% endif %}{% endif %}</title>
{% endif %}


It will be applied exclusively on blog post pages.

Kind regards,
Diego

◦ Product page slider & thumbnails with swiping for free themes: Minimal | Debut | Brooklyn | Supply
◦ Replace apps with simple copy/paste code snippets. Examples clicking here.
0 Likes
sh0pifyuser52
New Member
2 0 0

Thank you, Diego. I replaced this {% if template == 'index' %}
<title>{{ shop.name }} | {{ page_title }}</title>
{% elsif template == '404' %}
<title>{{ "general.404.title" | t }} | {{ shop.name }}</title>
{% else %}
<title>{{ page_title }} | {{ shop.name }}</title>

with the code you provided but it still showed up in blog pages. Did I replace the wrong code?

0 Likes