Archived topic
The caption in the image block appears 3 times
11 replies · Started by Bernhard on January 21, 2023
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 Bernhard,
For clarity, can you provide a screenshot of the dynamic link setting?
We'll try to assess what's occurring or if it's a bug afterward.
Uploading Screenshots: https://docs.generatepress.com/article/using-the-premium-support-forum/#uploading-screenshots
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.
That's really odd.
Can you provide admin login credentials so we can take a closer look?
Please use the Private Information field for this: https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information
Hi there,
here it is.
Thank you.
Can you try #1 here to test?: https://docs.generatepress.com/article/debugging-tips/
It would be good to back up your site before doing so.
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!