generateblocks icon indicating copy to clipboard operation
generateblocks copied to clipboard

GB image block figcaption does not work in GP block element.

Open thisbit opened this issue 2 years ago • 2 comments

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

  1. Create a (hero section) block element, assign location and hook.

  2. Insert image block, assign it a dynamic source (featured image, or acf image). (Up until now, all works)

  3. 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.


thisbit avatar Dec 11 '22 20:12 thisbit

Spotted something similar the other day. Can you try:

  1. Add an Image Block with static image
  2. Add a Caption block and set its Dynamic Data to show the Caption.
  3. 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.

diggeddy avatar Dec 12 '22 11:12 diggeddy

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
  1. Works
  2. Works
  3. 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

thisbit avatar Dec 17 '22 18:12 thisbit