Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 23/11/2024 Black Friday 2024

    BIG SALE, 30% discount for all our extensions. Use BF24 coupon code. Hurry up the discount is valid till 3 December.

  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

Captions on Lightbox
(1 viewing) (1) Guest
"ARI Fancy Lightbox" WordPress plugin
Go to bottomPage: 12
TOPIC: Captions on Lightbox
*
#70808
Captions on Lightbox 1 Year, 8 Months ago Karma: 0
Hello,
First, thank you very much for your great WP plugin.
I am using it combined with the Meow Gallery plugin and I have a little issue with the captions, which are not displayed.
Here is my page : filmerletravail.org/retour-en-images-sur-la-14e-edition/
The captions display in the gallery, but not in the lightbox. Could you tell me how captions are retrieved but the plugin and why they don't display in this case ?
Thanks in advance
Best regards
Etienne
The administrator has disabled public write access.
 
#70809
Re:Captions on Lightbox 1 Year, 8 Months ago Karma: 760
Hello,

Open "ARI Fancy Lightbox -> Settings -> Advanced" page and populate "Custom JS code" parameter with the following code:

Code:


$('.mgl-item').each(function() {
var $item = $(this), title = $item.find('.mgl-caption').text(), $a = $item.find('.mgl-img-container a');

$a.attr('data-caption', title);
});



Regards,
ARI Soft
The administrator has disabled public write access.
 
#70814
Re:Captions on Lightbox 1 Year, 8 Months ago Karma: 0
Awesome! Thank you very much
The administrator has disabled public write access.
 
#71262
Re:Captions on Lightbox 1 Year, 3 Months ago Karma: 0
I am having the same problem as Etienne, except I am using the Gutenberg gallery.
The captions display in the gallery, and clicking any image brings up the lightbox and I can progress backwards and forwards in the lightbox, but the lightbox images don't have a caption.
Sample page:lykewake.uk/wakes/march-2023/

I have added the javascript as above in the hope that it might work, but it doesn't.

Best wishes
Roger
The administrator has disabled public write access.
 
#71265
Re:Captions on Lightbox 1 Year, 3 Months ago Karma: 760
Hello,

Open "ARI Fancy Lightbox -> Settings -> Advanced" page and populate "Custom JS code" parameter with the following code:

Code:


$('.wp-block-image .wp-element-caption').each(function() {
  var $caption = $(this);
  var $a = $caption.parent().find('a');
  
  $a.attr('data-caption', $caption.html());
});



Regards,
ARI Soft
The administrator has disabled public write access.
 
#71272
Re:Captions on Lightbox 1 Year, 3 Months ago Karma: 0
Thank you, that now works with the captions being displayed below the image in the lightbox.
Roger
The administrator has disabled public write access.
 
Go to topPage: 12