Forum Replies Created

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

    (@smartmeister)

    Thank’s again,
    we will try to find the best compromise between the two plugins.

    Fabrice.

    Thread Starter smartmeister

    (@smartmeister)

    Thanks again for you help. It’s a very handfull advice !:

    Thread Starter smartmeister

    (@smartmeister)

    Thanks for your help.

    If i understood correctly, my theme offer a centralized management for various javascripts files, but each plugins use its own javascript files set, and can be in conflict with each other ?

    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.

    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.

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