Support

Account

Home Forums Front-end Issues ACF with Block Theme

Helping

ACF with Block Theme

  • Need help on how to use ACF for Block Theme

    I couldn’t understand a thing. New user here using new block theme. I don’t have any legacy field.

    So how do I use the block.json code and where should I put it?

  • For example i use this as reference: https://www.advancedcustomfields.com/resources/acf-blocks-with-block-json/

    {
    “name”: “acf/testimonial”,
    “title”: “Testimonial”,
    “description”: “A custom testimonial block.”,
    “style”: [ “file:./testimonial.css” ],
    “category”: “formatting”,
    “icon”: “admin-comments”,
    “keywords”: [“testimonial”, “quote”],
    “acf”: {
    “mode”: “preview”,
    “renderTemplate”: “testimonial.php”
    }
    }

    Does this mean that I need to create all of my field created on the group one by one? Sorry I’m so confused and helpless

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.