Tagged: Lightbox
-
AuthorPosts
-
October 28, 2020 at 1:23 am #1256244
Hello,
On my website the image lightbox is no longer showing image caption or title. It still shows the pagination in the bottom right corner e.g. 1/15, and it still has the left/right arrows.
link in private section below. This particular page was made using Advanced custom themes, however I get the same problem throughout the website.
Everything is up to date so there should be a problem there.
Thanks for your help.November 1, 2020 at 1:45 am #1257372Hey S-edwards,
Sorry for the very late reply, do you mean that you built this with the Advanced Custom Fields plugin (ACF)?
Anyways the element looks custom, the gallery image links do not have title attributes and this is what the lightbox needs to show the titles. The counter is automatically populated by the lightbox script by counting all of the images on the page.
Please try adding the title attributes to your image links.Best regards,
MikeNovember 2, 2020 at 4:43 am #1257504Hello,
This particular page is made using ACF yes. However it is the same on the whole website, including the Woocommerce product pages.
I added the image title and caption to the first gallery image, see links to screenshots below.
Image one shows the the photo gallery with the caption showing below it,
image two shows the image caption in the Media section of the WordPress Dashboard.
Image three shows the actual lightbox with nothing on it.November 2, 2020 at 2:02 pm #1257594Hi,
I took a look at one of your product pages /102-swaz5-refractor/, and product image doesn’t have a title attribute, in my tests on my localhost, in order to add the title attribute, you must add the text to the image description field, like this:
in the product page lightbox
Please try this.
If this doesn’t help with the product image, then perhaps you have a plugin or script that is removing the title attribute from images? Some people do this to remove the mouseover popup on images, does this sound like something you added?
As for your ACF page, it seems that the plugin is not including the title attributes of the images, I’m not sure how you would achieve this because I do not use the ACF plugin, but this is what the lightbox needs to show the titles below the lightbox image.Best regards,
Mike -
AuthorPosts
- You must be logged in to reply to this topic.