smartmeister
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Colorbox] lightbox conflict beetween wp-colorbox and google map widgetThank’s again,
we will try to find the best compromise between the two plugins.Fabrice.
Forum: Plugins
In reply to: [WP Colorbox] Change hyperlink default fontThanks again for you help. It’s a very handfull advice !:
Forum: Plugins
In reply to: [WP Colorbox] lightbox conflict beetween wp-colorbox and google map widgetThanks 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 ?
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.
Forum: Plugins
In reply to: [WP Colorbox] lightbox conflict beetween wp-colorbox and google map widgetWe 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.