Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1020558

    Hi,

    when the lightbox pro effect of nextgen gallery plus is activated, the lightbox effect on mobile devices is broken (eg Samsung Galaxy S6, kindle fire).
    (Laptop and other larger screens: no problems.)

    When clicking on an gallery image to enlarge it, you see this message but no image:

    Fatal error: Could not extract a stage height from the CSS. Traced height: Opx.

    I contacted the nextgen support and followed all of their suggestions:
    * deactivating plugins – error remains.
    * Changing theme (to twenty-seventeen) – error gone, everthying ok.

    Any suggestions what I could do? Thanks in advance! (And sorry for my poor English.)

    Best regards
    Linni

    • This topic was modified 6 years, 1 month ago by Lin.
    #1021448

    Hey Linni,

    Thank you for using Enfold.

    I’m sure the plugin authors will be able to help you with that. Just forward the error message to them so that they can locate the issue. Unfortunately, we don’t or we can’t provide support for third party plugins as stated on our support policy.

    Best regards,
    Ismael

    #1021466

    Hey Ismael,

    thank you for your answer.
    Hmm, now I am stuck in between theme and addon… Both authors say: “not me”.

    I am really sorry to say that there is a known conflict between NextGen’s Lightbox on mobile and Enfold.
    The ticket’s status will be “waiting on the third party” that will allow us getting back to you whenever we’ll have any news on it.

    Before I posted here I found some other threads about conflicts with Enfold and nextgen gallery, some of them had solutions with workarrounds eg adding few lines to the css-files. Unfortunately, none of them was exactly the same problem – and unfortunately my knowledge about CSS and where to put which command is, hmm, really basic…

    Any chance for more help? Thank you!

    Best regards
    Linni

    #1022136

    Hi,

    Have you tried disabling the theme’s lightbox option? Look for the “Lightbox Modal Window” in the Enfold > Theme Options panel and disable it. If I am not mistaken, nextgen has its own lightbox functionality, so you can use that instead of the default lightbox.

    Best regards,
    Ismael

    #1022154

    Hi,

    thank you.

    Unfortunately this does not help. I’ve tried that, but with oder without it: same error on mobile devices. :(

    Best regards
    Linni

    #1022514

    Hi,

    Can you give us the complete error log from the console? I would like to check this but I don’t have the required device to inspect the site on mobile view. Please ask the plugin author for additional help.

    Best regards,
    Ismael

    #1023127

    Hi,

    sure, I will do that – but please explain to a noob like me which log I should find… Thank you!

    And yes, I am still in contact with the plugin support – but until now no news.

    Best regards
    Lin

    #1023310

    Hi,

    I meant the complete error report from the browser console. Is that where you see the error?

    Best regards,
    Ismael

    #1024255

    Hi,

    the error occurs on devices with small monitors: smartphones, small tablets.
    I do not know how to reach the console there.
    On Laptop and Desktop: no problems.

    Best regards
    Lin

    • This reply was modified 6 years, 1 month ago by Lin. Reason: wrong link edited
    #1024660

    Hi,

    Thanks for the info.

    Try to wrap the gallery inside a div container. Example.

    
    <div class="ngg-gallery-wrap">
     // gallery here</div>
    

    Use this script in the functions.php file.

    add_action('wp_footer', 'ava_remove_ngg_wrapper', 9999);
    function ava_remove_ngg_wrapper() {
        ?>
        <script>
            (function() {
                const ngw = document.querySelector('.ngg-gallery-wrap');
                const ngg = ngw.childNodes;
                const h = ngg[0].offsetHeight;
                const w = ngg[0].offsetWidth;
    
                ngw.style.width = w + 'px';
                ngw.style.height = h + 'px';
            })();
        </script>
        <?php
    }
    

    And then add this code in the Quick CSS field:

    .ngg-gallery-wrap {
        display: block;
        width: 100%;
        height: auto;
        margin: 0 auto; 
    }

    Don’t forget to remove the browser cache before you check the page.

    Best regards,
    Ismael

    #1026632

    Hi,

    thanks again! But unfortunately it’s not working.

    First I had to change the functions.php via FTP because I got a “Scrape Nonce Failed” Error.

    But now the gallery is not displayed at all, so I removed all the changes.

    Now I am thinking about another solution without Gallery Plugin…

    Thank you for your help.

    Best regards
    Lin

    edit: to be honest, I would like to keep using NGG… ;)

    • This reply was modified 6 years ago by Lin.
    #1026812

    Hi,

    Too bad, it’s not working. Your best chance is to contact the plugin author if you want to keep the gallery.

    Best regards,
    Ismael

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