• Resolved frizzel

    (@frizzel)


    I had to revert to version 1.3.4, because the latter updates (I think it’s in 1.3.6) cause a conflict with the Mapplic plug-in.

    The scripts and styles of Mapplic simply would not load with the latest version of Ocean Extra installed. Not sure if it has to do with the other issue reported, that you have changed the Lightbox JS to magnific-popup.js, as that script is used by Mapplic as well.

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author oceanwp

    (@oceanwp)

    Hello, in Theme Panel > Scripts & Styles, have you disabled the Lightbox script?

    Thread Starter frizzel

    (@frizzel)

    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

    Thread Starter frizzel

    (@frizzel)

    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?

    Plugin Author oceanwp

    (@oceanwp)

    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

    Thread Starter frizzel

    (@frizzel)

    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.

    Plugin Author oceanwp

    (@oceanwp)

    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.

    Thread Starter frizzel

    (@frizzel)

    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.

    Plugin Author oceanwp

    (@oceanwp)

    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.

    Thread Starter frizzel

    (@frizzel)

    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.

    Plugin Author oceanwp

    (@oceanwp)

    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 🙂

    Thread Starter frizzel

    (@frizzel)

    That should indeed fix this.
    Thank you.

    Plugin Author oceanwp

    (@oceanwp)

    You are most welcome 🙂

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Conflict with Mapplic’ is closed to new replies.