0 like 0 dislike
13 views
in Sections Anywhere by

I've found this code in the ATB snippet which I've added to my theme settings but the editor is still writing to snippets instead of metafields.

{%- comment -%} to use add this to config/settings_schema.json {%- endcomment -%}

{%- comment -%}

,

  {

    "name": "SectionsAnywhere",

    "settings": [

      {

        "type": "checkbox",

        "id": "atb_use_meta",

        "label": "Use Metafields for Sections Anywhere",

        "info": "Save data to meta",

        "default": false

      },

      {

        "type": "checkbox",

        "id": "atb_use_theme_based_meta",

        "label": "Use Metafields for Current Theme Only",

        "info": "With each theme data is different",

        "default": false

      }

    ]

  }

{%- endcomment -%}

1 Answer

0 like 0 dislike
by (1.2k points)
After adding the code, did you enable metafields by activating that setting?
Welcome to Sections Anywhere Q&A - Saltye, where you can ask questions and receive answers from other members of the community.
...