generateblocks
generateblocks copied to clipboard
GB image block figcaption does not work in GP block element.
Description
If I use the gb image block in the element it does not allow creation of image caption. If I create the image and caption in post or page content insert caption assign its (dynamic source) then select the entire thing and copy/paste into element, then it works, but I cannot make any modifications to it in the element itself.
Steps to reproduce
-
Create a (hero section) block element, assign location and hook.
-
Insert image block, assign it a dynamic source (featured image, or acf image). (Up until now, all works)
-
Try to insert a figcaption.
Expected behavior
Image gets a figcaption element, and then you can set its dynamic source.
Actual behavior
Figcaption does not get inserted. So one cannot do anything with it.
References:
One can "hack" ones way around this by creating the image and caption, set the sources and styles, and then copy paste the entire thing into an element.
This works. But it's a bug.
Spotted something similar the other day. Can you try:
- Add an Image Block with static image
- Add a Caption block and set its Dynamic Data to show the Caption.
- Now set the Dynamic Data option for the Image
Does that work ?
As i see the issue arises when the image blocks dynamic data is selected it becomes impossible to select the caption and set its dynamic data.
Hi. I have tried this now. Ad
- [x] Add an Image Block with static image
- [x] Add a Caption block and set its Dynamic Data to show the Caption.
- [x] Now set the Dynamic Data option for the Image
- Works
- Works
- Kinda works but buggy, basically same as with my earlier example, it works, but headline is invisible and cannot be edited.
The experimend was done with featured image.
With acf image field it does not work at all. I mean the image gets pulled but not the coresponding caption. Something wrong is happening with that headline block there.
Bye