V 2.0 copy of section inheriting the name - how to change?

I have created a new Json Template that points to a copy of section ‘featured-product.liquid’ that I called featured-product-small

{
  "sections": {
    "main": {
      "type": "featured-product-small",
      "settings": {
      }
    }
  },
  "order": [
    "main"
  ]
}

Everything works and I can choose my new section in the customizer, Add Section.

But, the name still shows up as ‘featured product’. How do I set a custom name for my copy that will display in customizer so I can tell which version is mine.

Setting a name in the json did not help.

Any ideas?

Hi @billium ,

Please go to featured-product-small file, find ‘{% schema %}’ and change text here:

Ex:

"name": "Featured product small",

Hope it helps!

Thanks it worked.

Note for others, I had already tried this but left the name format as ‘featured-product-small’ which did not work.

Adding the space to break any name match made it work.

So, changing to:

{% schema %}
{
“name”: “featured-product-small”,

did not work

but changing to following with space before small did work

{% schema %}
{
“name”: “featured-product small”,

2 Likes