Site logo

Archived topic

The caption in the image block appears 3 times

11 replies · Started by Bernhard on January 21, 2023

Viewing posts 1–12 of 12

Hi there,
I made the following image block:

<!-- wp:generateblocks/image {"uniqueId":"13f2c61b","mediaId":37577,"sizeSlug":"medium","widthMobile":"200px","heightMobile":"150px","alignment":"floatRight","useDynamicData":true,"dynamicLinkType":"single-image","paddingLeft":"10","paddingLeftMobile":"10"} -->
<figure class="gb-block-image gb-block-image-13f2c61b"><img class="gb-image gb-image-13f2c61b" src="https://www.tourist-in-rom.com/wp-content/uploads/2021/02/Sixtinische-Kapelle-Aufbau-300x200.jpg" alt="Fondamenta della Cappella Sistina" title="Fondamenta della Cappella Sistina"/><!-- wp:generateblocks/headline {"uniqueId":"ab98c1c0","element":"figcaption","backgroundColor":"","textColor":"","linkColor":"","linkColorHover":"","borderColor":"","highlightTextColor":"","fontSize":14,"iconColor":"","isCaption":true} -->
<figcaption class="gb-headline gb-headline-ab98c1c0 gb-headline-text">rosso = cappella giallo = vecchia struttura</figcaption>
<!-- /wp:generateblocks/headline --></figure>
<!-- /wp:generateblocks/image -->

As you can see here, the caption is displayed 3 times. At the bottom is the correct caption. Above one are two with link to the image, one with the correct character size and one with the standard size.

How can I fix this?

Hi there,

there seems to be something wrong with that Blocks HTML. Can you delete it and try remaking the Image Block ?

Hi David,
I remade the image block and found, that it happens when I use the dynamic link to the single image. When I insert the link manually the caption is ok. Is this perhaps a bug?
I don't use captions that often but to set the links manually is an extra effort.
Thank you.

Hi Fernando,
here is the screenshot.

By the way, the line break in the caption must be set manually. If the caption extends beyond the width of the image, it moves the entire image block.

Can you provide a screenshot of the List View for that block so we can see whats inside the Image block ?

Hi David,
here is the screenshot.

Actually I substituted the dynamic link with a manual link. But you can see it on the staging site with the dynamic link. The link to the staging site is added in the private information.

Hi there,
here it is.

Hi Fernando,
Now all plugins are deactivated. Only GP Premium, GenerateBlocks, GenerateBlocks Pro and Polylang are active (and now temp login). But the problem is still there.
I deactivated also Polylang, but it makes no difference.

Hi there,

This is a confirmed bug. We'll have it fixed in the next GB 1.7 release :)

Thanks!

This archived topic is closed to new replies.