Home › Forums › Gutenberg › Register block preview image with acf_register_block_type? › Reply To: Register block preview image with acf_register_block_type?
@paulgagu do you have a working example with the new block.json since version 6.0? I use this but when I for example try the following code and have the hallo.jpg
inside the same folder as the block.json, it doesnt work :/:
"example": {
"attributes": {
"data": {
"preview_image_help" : "../accordion/hallo.jpg"
}
}
}
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.