Editing the collections/all page

Solved
ABCbtqmedequip
Tourist
25 0 0

Hello!

I'm looking to change the title and add a meta description for my collections/all page. Any advice? (currently using the minimal theme)

Thanks!

0 Likes

Hi,

you want to add in  particular collection or all collection page, where the all collections there !

can you share the page url?

If helpful then please Like and Accept Solution. Free Website Review and advice for sale from Hire us
Shopify Conversion Experts | Shopify Private App | Custom Theme Development | Custom Modifications In To Shopify Theme | Shopify SEO | Digital Marketing | Site Speed Optimization | Performance Site Audit
For Quick Chat Whats app | Email: pallavi@oscprofessionals.com | Skype : oscprofessionals-87
0 Likes
ABCbtqmedequip
Tourist
25 0 0

Looking to add in the all collections page, where all the products are listed. 

Here is the url:

https://abcboutiquemedical.com/collections/all

 

0 Likes

This is an accepted solution.

Hi,

Thought this might be helpful for some of you. If you don't have an SEO plugin that handles it you can edit your theme.liquid file and add something like this:

  {% comment %} Handle certain pages manually which aren't available in the backend such as all products {% endcomment %}
  {%- if collection.title == 'Products' -%}
  {% assign seo_title = "INSERT PAGE TITLE HERE" %}
  {% assign page_description = "INSERT PAGE DESCRIPTION HERE" %}
  {%- endif -%}

I added it right before the opening title tag so it would set those variables before the theme file requested them:

  {% comment %} Handle certain pages manually which aren't available in the backend such as all products {% endcomment %}
  {%- if collection.title == 'Products' -%}
  {% assign seo_title = "INSERT PAGE TITLE HERE" %}
  {% assign page_description = "INSERT PAGE DESCRIPTION HERE" %}
  {%- endif -%}
  <title>{{ seo_title | strip collection.title }}</title>
  {%- if page_description -%}
    <meta name="description" content="{{ page_description | escape }}">
  {%- endif -%}
If helpful then please Like and Accept Solution. Free Website Review and advice for sale from Hire us
Shopify Conversion Experts | Shopify Private App | Custom Theme Development | Custom Modifications In To Shopify Theme | Shopify SEO | Digital Marketing | Site Speed Optimization | Performance Site Audit
For Quick Chat Whats app | Email: pallavi@oscprofessionals.com | Skype : oscprofessionals-87
tim
Shopify Expert
2926 143 1021

Actually, there is no need to do code modifications.

Shopify creates virtual collection with handle all which contains all products from your shop, but you can explicitly create collection with title all (so that it handle will be all)  and this collection will be used instead.

You can create it as automatic collection with any broad condition, like "price > 0" or "product available", etc.

After collection is saved, you can then rename it (the handle will stay unchanged), add collection image and description, set sorting order and so on...

Want to hire me to tweak a theme? Mail me at tairli@yahoo.com!
My post solved your problem? Like it!
KieranR
Shopify Partner
296 24 88

Yeah do Tim's one way easier.

Full time Shopify SEO guy, based in NZ. Sometimes freelance outside the 9-5.