Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1306404

    Hi Kreisi,
    In the theme settings I have checked the Lightbox Modal Window checkbox. It says: Check to enable the default lightbox that opens once you click a link to an image. Uncheck only if you want to use your own modal window plugin.
    But when I go to a product page, for instance https://www.depend.nl/incontinentiemateriaal-assortiment/producten-voor-mannen/producten-voor-mannen-pants/voordeelbox-depend-pants-voor-mannen-normal-maat-l-xl/ and click on an image I am send to the image url. I don’t see a lightbox.
    When I uncheck the Lightbox Modal Window checkbox nothing changes. I have disabled all plugins and tried the Enfold theme without a childtheme, even different versions, but I can’t seem to make it work.
    Can you see what is wrong with the Lightbox Modal Window?
    Kind regards,
    Rob van Heijst

    #1306534

    Hey Rob,
    Thank you for your patience and for the link to your site, I see your product image is missing the class lightbox-added it is hard to tell what the issue is without logging in, but please check that the Enfold Theme Options > Performance > Load jQuery in your footer is not activated.
    Otherwise please include admin login in the Private Content area so we can be of more assistance.

    Best regards,
    Mike

    #1307882

    Hi Mike,
    The Load jQuery in your footer is not activated. It must be something else but I’m not sure what it is.
    In the Private Content part I have added the user details for you to log in.
    Let me know if you need anything else.
    Regards,
    Rob van Heijst

    #1307909

    Hi,
    Thank you for the feedback, please see below.

    Best regards,
    Mike

    #1307935

    Hi Mike,
    Thank you. Your IP address has been whitelisted. You can access the website now.
    What I tried to do myself is to enable the Enfold theme itself, so not the child theme. The image keeps having the same problem.
    Regards,
    Rob van Heijst

    #1308147

    Hi,
    Thank you for the login to your test server, but the images are not showing on the product page nor in the media library, empty placeholders are showing in the media library, I also notice that you have a plugin called “all import” the empty images in the media library looks like a failed import, when I compare this with the product page image, which is empty, clicking on it redirects to the home page with this error in the console OTS parsing error: invalid sfntVersion
    So as your test site stands it will not help me investigate your live site’s issue, please try creating a staging site which is a working clone of your live site, or grant access to your live site. Most web hosts that use the cPanel have a “Staging Site” option that will clone your site to a test sub-domain in just a few mins, perhaps you can try this?

    Best regards,
    Mike

    #1308725

    Hi Mike,
    Thank you for looking into the problem. I will try to fix a staging site.
    When I look a bit deeper into the problem it seems that the class ‘lightbox-added’ is missing from the link. I think that is the reason why the lightbox is not showing but I have no idea yet why the class is missing.

    <figure class="woocommerce-product-gallery__wrapper">
    		<a href="https://www.depend.nl/wp-content/uploads/2018/04/depend_bed_onderlegger_60x90.jpg" class="" title="" rel="product_images[grouped]">

    The class is empty. Have you seen this before?
    Regards,
    Rob van Heijst
    Clever Strategy

    • This reply was modified 3 years, 5 months ago by CSenvato.
    #1308933

    Hi,
    I checked your page again and do see that you are missing the need class ‘lightbox-added’ but since you have the ‘Lightbox Modal Window’ option enabled it should be working, the only thing I can imagine is that you have a script stripping it out, but I can’t see your functions.php
    I also notice that you are using ‘Advanced Custom Fields PRO’ and some of these look like they are for products, perhaps this is the issue? Can you disable this to check?
    I also see that your site is not loading the script: /wp-content/themes/enfold/js/aviapopup/jquery.magnific-popup.min.js this is needed but since you have the ‘Lightbox Modal Window’ option enabled it should be loading?

    Best regards,
    Mike

    #1310751

    Hi Mike,
    Got it working. I missed the fact that the old header.php in the child theme did not have the $lightbox_option so it was always null. That is why it didn’t work.
    So I added the following code to the old header.php in the child theme and now it’s working fine again:

        global $avia_config;
    
        $lightbox_option = avia_get_option( 'lightbox_active' );
        $avia_config['use_standard_lightbox'] = empty( $lightbox_option ) || ( 'lightbox_active' == $lightbox_option ) ? 'lightbox_active' : 'disabled';
    
        $avia_config['use_standard_lightbox'] = apply_filters( 'avf_use_standard_lightbox', $avia_config['use_standard_lightbox'] );

    Thank you for pointing me in the right direction.

    Kind regards,

    Rob van Heijst
    Clever Strategy

    #1310826

    Hi Rob,

    Great, I’m glad that you got it working, and that Mike could help you out. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.