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?

Not working on featured image in some theme
(1 viewing) (1) Guest
"ARI Fancy Lightbox" WordPress plugin
Go to bottomPage: 123
TOPIC: Not working on featured image in some theme
#71303
Re:Not working on featured image in some theme 1 Year, 3 Months 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 1 Year, 3 Months ago Karma: 760
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 1 Year, 3 Months 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 1 Year, 3 Months ago Karma: 760
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 1 Year, 3 Months 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.
 
#71968
Re:Not working on featured image in some theme 6 Months, 1 Week ago Karma: 0
Hello , what should I do to fix the problem?
The administrator has disabled public write access.
 
Go to topPage: 123