ColorlibHQ / fancybox-for-wordpress

WordPress plugin that integrates FancyBox into your blog
https://wordpress.org/plugins/fancybox-for-wordpress/
GNU General Public License v3.0
27 stars 21 forks source link

show extra text in the popup caption #102

Open beatricelucaci opened 7 months ago

beatricelucaci commented 7 months ago

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/