Support

Account

Home Forums Gutenberg All possible block.json Values and how to use them

Solved

All possible block.json Values and how to use them

  • Docs for ACF Blocks sucks – sorry.

    Can anyone share examples of usage of scripts & styles or how you’re handling custom svg icons or even what we can put under "acf"? How to use “matrix content align” with ACF 6.0?
    How to get the values for backgrounds?

    I’m sorry, but before 6.0 every change from Eliot was well documented – now it’s just a mess.

    Please share your solutions with hope the docs will soon be better than now, as now it’s tragedic for new users and more often past year even for me

  • I’ll start with the point that it’s easier to use script handle rather than script file to all JS & CSS files:

    {
        "name": "block-name",
        
        "style":        "block-handle-css",
        "editorStyle":  "block-handle-css-editor",
        
        "script":       "block-handle-js",
        "editorScript": "block-handle-js-editor",
        "viewScript":   "block-handle-js-view",
    }
    
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.