-
AuthorPosts
-
October 12, 2018 at 4:25 am #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, 2 months ago by Lin.
October 15, 2018 at 8:30 am #1021448Hey 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,
IsmaelOctober 15, 2018 at 9:02 am #1021466Hey 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
LinniOctober 16, 2018 at 12:50 pm #1022136Hi,
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,
IsmaelOctober 16, 2018 at 1:09 pm #1022154Hi,
thank you.
Unfortunately this does not help. I’ve tried that, but with oder without it: same error on mobile devices. :(
Best regards
LinniOctober 17, 2018 at 4:22 am #1022514Hi,
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,
IsmaelOctober 18, 2018 at 5:08 am #1023127Hi,
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
LinOctober 18, 2018 at 12:06 pm #1023310Hi,
I meant the complete error report from the browser console. Is that where you see the error?
Best regards,
IsmaelOctober 20, 2018 at 2:17 am #1024255Hi,
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, 2 months ago by Lin. Reason: wrong link edited
October 22, 2018 at 4:16 am #1024660Hi,
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,
IsmaelOctober 26, 2018 at 5:51 am #1026632Hi,
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
Linedit: to be honest, I would like to keep using NGG… ;)
- This reply was modified 6 years, 1 month ago by Lin.
October 26, 2018 at 2:55 pm #1026812 -
AuthorPosts
- You must be logged in to reply to this topic.