Questions tagged [acf-gutenberg]
8 questions
5
votes
2 answers
Show preview image for custom Gutenberg blocks
I've created a batch of custom ACF gutenberg blocks and now trying to assign a preview image.
Issue: Getting the preview image to show
The below image here shows a paragraph component which is a default block.
You can see on the right hand side,…
![](../../users/profiles/4329847.webp)
Freddy
- 1,651
- 2
- 13
- 40
2
votes
1 answer
Creating page and post specific ACF Gutenberg blocks
I'm creating custom ACF Gutenberg blocks my a site and have successfully managed to register my own blocks. Now, I have a custom post type called Blog. I do not want blog to show all my ACF Gutenberg blocks, I want to create a separate batch for…
![](../../users/profiles/4329847.webp)
Freddy
- 1,651
- 2
- 13
- 40
0
votes
0 answers
ACF render block makes edit page in wp not read any CSS
I'm having trouble with my acf-blocks.
Im trying to create a block in ACF-pro. The code I have written works fine and my blocks are working. But my problem is that when I write in header.php the blocks on the edit page in wp does…
![](../../users/profiles/13426404.webp)
TSSWE
- 3
- 3
0
votes
0 answers
Update and re-render ACF gutenberg block from jQuery function
I have two custom gutenberg blocks built with ACF, the parent block has an InnerBlocks section which the child block goes into and multiple child blocks can go into the parent block. When changing the attributes of a parent block (attribute…
![](../../users/profiles/1442318.webp)
mrmryb
- 1,439
- 1
- 12
- 18
0
votes
0 answers
Preview image in ACF gutenberg block
Is it possible to add an image to the gutenber block preview when using ACF to register the block ?
Here's the code to register the block:
acf_register_block(array(
'name' => 'bk-raisons',
'title' => __('Les…
![](../../users/profiles/1848205.webp)
Diezel
- 23
- 5
0
votes
1 answer
Wordpress Gutenberg custom columns block
I'm trying to create a custom "columns" block for Gutenberg with ACF & Wordpress, so what I want is a easy to manage columns block, where user can input some number representating the amount of wanted columns (for example, 5) and a for will create…
![](../../users/profiles/7267775.webp)
RBFraphael
- 13
- 4
0
votes
0 answers
How to add custom fields to a gutenberg custom format?
I created a custom format button for a footnote using the Format API, using this guide.
This just wraps the text in an A tag. However, the functionality I require would change the markup like so:
![](../../users/profiles/5427699.webp)
S. Brown
- 33
- 9
0
votes
0 answers
Avoid duplicate ID's in Wordpress ACF Blocks
I have created some ACF Blocks for a Wordpress site. ACF Blocks are populated/managed through the Gutenberg tool.
One of the blocks has a title field that is used to display a title and then assign a "slugified" version of that title as an ID to it…
![](../../users/profiles/4880498.webp)
tobiasg
- 617
- 2
- 8
- 24