EasyFancyBox in contempt of "nolightbox"

Home Forums Easy FancyBox Pro EasyFancyBox in contempt of "nolightbox"

This topic contains 3 replies, has 2 voices, and was last updated by  Pharéo 6 days, 12 hours ago.

  • Author
    Posts
  • #12462

    Jörg Schötz
    Participant

    Hello,

    you helped me out quite a while ago with a code snippet, which shall prevent EasyFancyBox to open on product images of my shop, which also opened by ThickBox.

    The code was

    jQuery(document).on(‘ready post-load’, function(){ jQuery(‘a.wpsg_imagelink’).addClass(‘nolightbox’); });

    and is placed in a hidden widget and still seems to work, as the pictures does have the followig css-class: class=”wpsg_imagelink thickbox fancybox image nolightbox” – for an example see here.

    This worked for some time, but somehow it now stopped working (since an update of EFB) and I can’t figure out why – is you Pro version still supporting this class correctly?

    Many thank for your help in advance.

    Best regards,
    Joe

  • #12471

    Pharéo
    Participant

    Hi Joe, please try this code instead:

    
    jQuery(function(){
      jQuery(‘a.wpsg_imagelink’).addClass(‘nolightbox’);
    });
    
  • #12489

    Jörg Schötz
    Participant

    Hi,

    thank you for you answer, sadly this code seems nothing to change in the code, when I inspect the site with the website developer tool of Safari.

  • #12498

    Pharéo
    Participant

    Hi Joe, I don’t see the code in your site source but I don’t see the double light box either. You seem to have resolved it differently?

You must be logged in to reply to this topic.

Site by Pharéo | Hosted on The Permanently Moving Network