You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Offline

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

Please create a new Ticket and we will get back to you as soon as we can.

#117085 Image caption disappears when using “Figure” in JCE

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by Willem Steen on Thursday, 20 February 2025 15:15 GMT

Willem Steen

Dear JCE Support,

 

I am experiencing an issue when inserting images into columns using the JCE editor in Joomla 5. I use the “Figure”option to insert an image and add a caption using <figcaption>.

However, after adding the image and placing the caption below the photo, the caption disappears when I click on the image. The caption remains visible in the columns, but when viewing the image in a lightbox or another display mode, the caption is no longer present.

 

Here is an example of the code I am using:

<figure style="margin-right: auto; margin-left: auto; display: table; outline: 2px solid #ffffff;"data-wf-figure="1">

    <img src="images/Website_Definitief/Fotoprojecten_Trein/Spoorwegmaatschappij_CH/Normaalspoor/SBB/Opf_SBB_Re_44_II/Opf_SBB_Re_44_II_01-min.jpg"

         alt="" width="500" height="305" 

         style="border: 2px solid #ffffff; margin: initial; float: none;"

         data-alt="Openingsfoto SBB Re 4/4 II" />

    <figcaption style="text-align: center; color: #000000; background-color: #ffffff;">

        Openingsfoto SBB Re 4/4 II

    </figcaption>

</figure>

You can view the issue on my website using the following link:

🔗 Test Page - SBB Re 4/4 II

 

Could you help me resolve this issue?

 

Thank you in advance!

 

Best regards,

Willem Steen

Ryan

I'm not seeing the issue youo describe, but you do appear to have more than one "lightbox" script active on each image - JCE MediaBox and "mediabox ck" perhaps?

This might be the cause of the issue.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

Willem Steen

Hello

I am still busy adding photos in columns! I still have more than 100 to go!

 

However, I notice that when I create a column—five in my case—and insert the photos using the “Insert Image” option in JCE, the descriptions of the photos disappear when I then apply the “Figure” option to the photo in the column.

 

I paste the description under the photo after applying the “Figure” option and format it accordingly.

But when I click on the photo, I don’t see the description—only in the columns.

In the attachment you can see that the description is correct, but if you enlarge the photo there is no description. "Overview" and "no name"

Attachments

Ryan

I paste the description under the photo after applying the “Figure” option and format it accordingly.

But when I click on the photo, I don’t see the description—only in the columns.

In the attachment you can see that the description is correct, but if you enlarge the photo there is no description. "Overview" and "no name"

The caption from the figure element is not applied to the popup. This needs to be set seperately in the MediaBox options when creating the popup.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

Willem Steen

Sorry for the late response, but I had to test it first.
The problem has indeed been solved.
Thank you and kind regards
Willem Steen