• Resolved smartmeister

    (@smartmeister)


    Hello,

    Recently our GMW started to do weird things, could you give us your opinion on what could possibly cause it : some portions of the outer frame is missing near the bottom, and the zoom keys no longer work.

    Apparently GMW acted all funny after we added the wp-colorbox plugin, which allegedly “allows users to pop up content in lightbox using the popular jQuery ColorBox library”

    We looked around for issues related with the use of colorbox, but couldn’t find what’s wrong on our side.

    Thanks in advance for you possible help.

    Fabrice
    http://www.h-poincare.fr

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter smartmeister

    (@smartmeister)

    We managed to have both plugins (wp-colorbox and google map widget) working side by side, but we had to go down and dirty, and edit the following portion of code in google-maps-widget.php :

    static function enqueue_scripts() {
    if (is_active_widget(false, false, ‘googlemapswidget’, true)) {
    // wp_enqueue_style(‘gmw’, plugins_url(‘/css/gmw.css’, __FILE__), array(), GMW::$version);
    // wp_enqueue_script(‘gmw-colorbox’, plugins_url(‘/js/jquery.colorbox.min.js’, __FILE__), array(‘jquery’), GMW::$version, true);
    wp_enqueue_script(‘gmw’, plugins_url(‘/js/gmw.js’, __FILE__), array(‘jquery’), GMW::$version, true);
    }

    We’re still not sure what would be a more efficient / permanent fix. Obviously this trick will be overwritten after updating the plugin.

    Plugin Author WebFactory

    (@webfactory)

    Hi, yes the fix will be overwritten once you update.
    From what I can tell from this code Colorbox JS and CSS were included twice and thus caused problems. Removing gmw.css you won’t have access to our lightbox skins and the lightbox itself might not look right. But removing double-included files is definitely the way to go if they cause conflicts.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Zoom stopped working missing lightbox outer frame’ is closed to new replies.