2 pages have duplicate meta descriptions

Hello my collections page (where i can see the collections, so not the created collection) has the same metadata as my home page, what code can I use to change the meta description of the collections page?

I could solve it. Maybe create a copy of the active theme to test it first

  1. Edit the code of the theme

  2. Go to layout, click on theme.liquid

  3. search for <meta name=“description”

  4. Substitute the whole line of code e.g.
    with following code:

    {% if request.page_type == ‘list-collections’ %}

    {% elsif page_description %}

    {% endif %}

  5. Save. You can test it afterwards with preview mode and source code by looking for meta name. One of the results shows you the description

That did the trick for me. Obviously adjust Your new meta description for collections