Lightbox doesn't work with wp galleries
Look at this page for an example:
Galleries were inserted using the Wordpress block editor.
I tested a different lightbox plugin, they work fine with that, but not with the be-theme.
Here are the relevant settings.
Comments
Hello,
Please, turn off all of the plugins, refresh your cache, and check if the problem persists.
Moreover, if you use a child theme, switch to parent, and recheck it.
Thanks
That doesn't solve it. I took a look at the code and I found the problem.
In betheme/js/scripts.js, line 1135, has this line of code:
WP block editor inserts a class called .wp-block-image. So I updated that line to this:
This fixes lightbox on the Wordpress galleries.
Can the code get updated? I don't want to have to change this every time betheme gets updated.
Thanks for checking it out, and pointing out where this issue lies.
I have passed this to the dev team, and we will add this in the next update.
Best regards
Thank you very much. Have a great day.
After the latest update, lightbox is now broken again on Wordpress galleries.
Did you re-edit the scripts.js file with your change? Or you did do something else to fix that?
I have checked your website, and the lightbox is working correctly.
Best regards
PS.
I encourage you to check our Facebook group if you have not done it yet. You can talk there about Betheme and confront your experience with others:
https://www.facebook.com/groups/betheme/
Thanks for the reply. I had updated the script file again.
We have checked that.
The fix will be included in the next update.
Best regards
Thank you!