Solved

How can I modify my website's tab titles without coding knowledge?

cmerepets
Tourist
6 0 1

Hi all, 

 

I have two issues that I'd like to seek help on since I'm not familiar with coding. The first is to change the tab title of my shop's homepage to remove the repetition of my shop name. Everything after the word "Treats" should be removed, including the hyphen and as well as any spaces.

Screenshot 2023-12-06 at 3.36.38 PM.png

 

The second is the tab title of my other pages. How should I amend the code such that the format is amended to "C'mere - <page name>" instead of the current format of "<page name> - <shop name>"?

Screenshot 2023-12-06 at 3.39.08 PM.png

 

The current code that is in theme.liquid can be found below:

    <title>
      {{ page_title }}
      {%- if current_tags %} &ndash; tagged "{{ current_tags | join: ', ' }}"{% endif -%}
      {%- if current_page != 1 %} &ndash; Page {{ current_page }}{% endif -%}
      {%- unless page_title contains shop.name %} &ndash; {{ shop.name }}{% endunless -%}
    </title>

Much thanks!

Accepted Solution (1)
webwondersco
Shopify Partner
1103 164 161

This is an accepted solution.

@cmerepets , you can update your code as mentioned below:

 

 <title>
      {%- if template == 'index' -%}
        {{ page_title }}
      {%- else -%}
        C'mere-{{ page_title }}

        {%- if current_tags %} &ndash; tagged "{{ current_tags | join: ', ' }}"{% endif -%}
        {%- if current_page != 1 %} &ndash; Page {{ current_page }}{% endif -%}
      {%- endif -%}
    </title>

 

hope this will help you

Web Wonders | Shopify Partner | Connect here!
- Question answered? Mark as Accepted Solution, reply helpful? Click Like
- Hire me, if you want to design, re-design, develop a store, or make changes to the pre-built store.
- a small Coffee Tip would be greatly appreciated. :)..! Instagram

View solution in original post

Replies 6 (6)

webwondersco
Shopify Partner
1103 164 161

@cmerepets , Hope you are doing well.

 

Could you please share your store URL?

 

Also, share which theme you are using and is the tab contents are static or dynamic.

Web Wonders | Shopify Partner | Connect here!
- Question answered? Mark as Accepted Solution, reply helpful? Click Like
- Hire me, if you want to design, re-design, develop a store, or make changes to the pre-built store.
- a small Coffee Tip would be greatly appreciated. :)..! Instagram
cmerepets
Tourist
6 0 1

Hi @webwondersco!

 

Unfortunately my website is still under development and is not live yet (due to issues that I've mentioned in my original post). Is there any other way that I can help you see what you require?

 

I'm currently using the Dawn theme, but I'm not sure whether the tab contents are static or dynamic. How can I check that?

webwondersco
Shopify Partner
1103 164 161

You can check the tab content through the customized theme. And from there select the page where the tab content is.

 

Can help by making some changes in your theme code.

Web Wonders | Shopify Partner | Connect here!
- Question answered? Mark as Accepted Solution, reply helpful? Click Like
- Hire me, if you want to design, re-design, develop a store, or make changes to the pre-built store.
- a small Coffee Tip would be greatly appreciated. :)..! Instagram
cmerepets
Tourist
6 0 1

You can access the website here

 

About the static/dynamic tab, do you mean whether the tab title changes when a navigate to a new product page? If so, then it is dynamic. Please let me know if I've interpreted your question correctly. 

 

Thanks!

webwondersco
Shopify Partner
1103 164 161

This is an accepted solution.

@cmerepets , you can update your code as mentioned below:

 

 <title>
      {%- if template == 'index' -%}
        {{ page_title }}
      {%- else -%}
        C'mere-{{ page_title }}

        {%- if current_tags %} &ndash; tagged "{{ current_tags | join: ', ' }}"{% endif -%}
        {%- if current_page != 1 %} &ndash; Page {{ current_page }}{% endif -%}
      {%- endif -%}
    </title>

 

hope this will help you

Web Wonders | Shopify Partner | Connect here!
- Question answered? Mark as Accepted Solution, reply helpful? Click Like
- Hire me, if you want to design, re-design, develop a store, or make changes to the pre-built store.
- a small Coffee Tip would be greatly appreciated. :)..! Instagram
cmerepets
Tourist
6 0 1

That did the trick. Thanks!