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


Recent Events
  • 28/08/2023 CalendARI v. 1.3.0 supports Joomla! 4.x/PHP 8.x

    CalendARI is a Joomla! events manager component and now It is compatible with Joomla! 4.x.

  • 19/08/2023 ARI Quiz 3.10.0 with Joomla! 4 support

    Joomla! quiz extension with J! 3.x/4.x and PHP 8.x support.


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?

Not working on featured image in some theme
(1 viewing) (1) Guest
"ARI Fancy Lightbox" WordPress plugin
Go to bottomPage: 12
TOPIC: Not working on featured image in some theme
#71303
Re:Not working on featured image in some theme 3 Weeks ago Karma: 0
So the theme should not put the image in a link to same page but what should I do to correct this?

<a href="sistemabates.it/occhiali-sapiosessuali/" title="Permanent Link to Occhiali sapiosessuali"><img width="340" height="340" src="sistemabates.it/public/uploads/sites/10/2017/01/x354-q80-340x340.jpg" class="elegantwp-post-thumbnail-single wp-post-image" alt="" decoding="async" fetchpriority="high" srcset="sistemabates.it/public/uploads/sites/10/2017/01/x354-q80-340x340.jpg 340w, sistemabates.it/public/uploads/sites/10/2017/01/x354-q80-150x150.jpg 150w, sistemabates.it/public/uploads/sites/10/2017/01/x354-q80-100x100.jpg 100w, sistemabates.it/public/uploads/sites/10/2017/01/x354-q80-300x300.jpg 300w, sistemabates.it/public/uploads/sites/10/2017/01/x354-q80.jpg 354w" sizes="(max-width: 340px) 100vw, 340px" data-fancybox-group="fb_gallery_0_0"></a>
The administrator has disabled public write access.
 
#71306
Re:Not working on featured image in some theme 3 Weeks ago Karma: 741
Add the following code to "ARI Fancy Lightbox -> Settings -> Advanced -> Custom JS Code" parameter if you want to open the image into the lightbox when click instead of navigating via anchor link:

Code:


setTimeout(function() {
$('.entry-content>A:has(.wp-post-image)').each(function() {
  var $a = $(this);
  var $img = $a.find('img');
  
  $a.addClass('ari-fancybox');
  $a.attr('data-src', $img.attr('src'));
});
ARI_FANCYBOX_INSTANCE.convertElements();
}, 10);



Regards,
ARI Soft
The administrator has disabled public write access.
 
#71307
Re:Not working on featured image in some theme 3 Weeks ago Karma: 0
It doesn't work, I have contacted the theme developer to ask if they can remove the a href around the featured image.
The administrator has disabled public write access.
 
#71308
Re:Not working on featured image in some theme 3 Weeks ago Karma: 741
The page doesn't contain the custom code.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#71309
Re:Not working on featured image in some theme 3 Weeks ago Karma: 0
I removed it because it did not work, opened the page again after some time delay but image remains there..
The administrator has disabled public write access.
 
Go to topPage: 12