Hello, in Theme Panel > Scripts & Styles, have you disabled the Lightbox script?
Yes, I have disabled the Lightbox script.
By the way, it’s not as I assumed from 1.3.6 that causes the problem, but from version 1.3.5
Although I have disabled the Lightbox script, it seems the conflict is indeed caused by the change from chocolat.js.
I have tested 1.3.5, but with the includes/panel/scripts.php from 1.3.4 and then Mapplic scripts do load.
By the way, shouldn’t that change in the lightbox script be in the changelog?
Hello, can you try to enable the lightbox script to see if that solve your issue?
As the script is in the theme, the changelog for this is noted in the theme: https://github.com/oceanwp/oceanwp/blob/master/changelog.md#20171019—142
I already tried that, but made no difference.
However, I had an outdated version of OceanWP theme. Updated that to latest version (1.4.6). Also, again updated Ocean Extra to latest version (1.3.7).
Same result: scripts and styles of Mapplic would not load, whether Lightbox JS enabled or disabled.
Only when I replaced the latest version with the 1.3.4 version of the file includes/panel/scripts.php Mapplic scripts and styles would load. So it’s clearly in there with the call to the new script.
After updating the theme and Ocean Extra, go to Theme Panel > Scripts & Styles, click Save Changes, clear your cache and tell me if it solves the issue.
I was about to post about your suggestion as I saw it in the theme’s log.
Yes, I’ve done that already.
It does not resolve the issue.
Can you please now look into that file I mentioned every time and resolve the issue there?
Thank you.
You misunderstood something, the chocolat.js file has been replaced by the magnific-popup.js file which is a better lightbox script so there is no more chocolat.js in the theme. If the Lightbox script is enabled in the Scripts & Styles page and the plugin use the same script, I cannot understand why there is this issue as I don’t have the plugin you mention so I cannot test anything.
Have you also contacted the plugin author?
Maybe be it is just that the plugin needs to use the latest version of the script.
I perfectly understand chocolat.js is not included in the theme anymore. That’s not the point. It goes wrong with the deregister scripts.
If in the file includes/panel/scripts.php I comment
wp_deregister_script( 'magnific-popup' );
Mapplic scripts load, but with wrong css.
If I also comment
wp_deregister_style( 'magnific-popup' );
everything is fine.
Hello, in the next release, I will only deregister the magnific popup script and style if it is disabled via the scripts & styles page because right now, they are deregistered if you disable any script.
That will fix this kind of issue with external plugins 🙂
That should indeed fix this.
Thank you.