fancybox-for-wordpress icon indicating copy to clipboard operation
fancybox-for-wordpress copied to clipboard

show extra text in the popup caption

Open beatricelucaci opened this issue 1 year ago • 0 comments

I am designing an art gallery website (WordPress 6.4.2, TwentyTwentyThree theme). The website is not online yet.

I installed Fancybox for WordPress plugin (version 3.3.3), created a page with a gallery and set a title inside each picture; when I click on a picture, a popup overlay opens showing the same picture in bigger size and having the caption inside with the same text of the title (important: the popup overlay is a part of a slideshow).

I wish to show extra text in the caption when a popup is opened; i.e., if a picture in the gallery shows a sculpture with the following text inside:

Sculpture name: The Big Blue

when clicking, the caption inside the popup overlay should be:

Sculpture name: The Big Blue Year: 2023 Author: John Smith etc.

I thought to put some javascript code (jQuery) to hide and show the extra text, by Insert Headers and Footers plugin or using Child Theme.

https://wordpress.org/support/topic/fancybox-for-wordpress-show-extra-text-in-the-popup-caption/

beatricelucaci avatar Feb 08 '24 09:02 beatricelucaci