I am creating my own Woo Commerce Product page and I am using the Gallery Element for the pictures. I do not want the image description text to show when the images open in lightbox. In the Gallery Element under Advanced Link Settings I have chosen No Text but the description still shows when I preview the gallery. How can I turn the description off so only the images show in Lightbox.
Hey RosannaK,
Thank you for the inquiry.
The lightbox by default uses the title of the image or the value of the title attribute as the image description. To hide it, we could use this css code.
.mfp-title {
display: none !important;
}
You could also edit the title and caption value of the images in the Media > Library panel.
Best regards,
Ismael
Thanks for your help Ismael. This has helped.
Hi,
Did you need additional help with this topic or shall we close?
Best regards,
Jordan Shannon
Hi Jordan,
Thanks so much for this code. It works great. You can close this request.
Hi,
If you need additional help, please let us know here in thee forums.
Best regards,
Jordan Shannon