Post

shopify add class to section

How to add custom css class to section

In your custom section file. Edit the json schema code “class” values to add an extra class. See below extra class added ‘section-image-with-text–custom’

1
2
3
4
5
6
7
8
9
10
11
{
  "name": "Image with text",
  "class": "section-image-with-text section-image-with-text-custom",
  "settings": [
    {
      "type": "image_picker",
      "id": "image",
      "label": "Image"
    }
  ]
}
This post is licensed under CC BY 4.0 by the author.