LightBox Not Working
-
Thumbnail map works but lightbox won’t open on click
In debag console message:GET http://local.site.company/wp-content/plugins/google-maps-widget/js/jquery.colorbox.min.js?ver=2.0 404 (Not Found)
but file “jquery.colorbox.min.js” exist, with header:
/*!
Colorbox v1.5.10 – 2014-06-26
jQuery lightbox and modal window plugin
(c) 2014 Jack Moore – http://www.jacklmoore.com/colorbox
license: http://www.opensource.org/licenses/mit-license.php
*/For now, I have disabled lightbox and instead put in the URL (with target=blank) to go to Google Maps.
Below are the errors I found when running debug: (I changed URL of my site to “mysite”
Failed to load resource: the server responded with a status of 404 (Not Found)
http://mysite.com/wp-content/plugins/google-maps-widget/js/jquery.colorbox.min.js?ver=2.0 Failed to load resource: the server responded with a status of 404 (Not Found)
gmw.js?ver=2.0:20 Uncaught TypeError: undefined is not a function
http://mysite.com/wp-content/themes/weaver-ii/style.css Failed to load resource: the server responded with a status of 404 (Not Found)
2gmw.js?ver=2.0:20 Uncaught TypeError: undefined is not a functionRESOLVED:
Rename file in directory wp-content\plugins\google-maps-widget\js\“jquery.colorbox-min.js” to “jquery.colorbox.min.js”
or
change “.” to “-” in file google-maps-widget/google-maps-widget.php
**************
wp_enqueue_script(‘gmw-colorbox’, plugins_url(‘/js/jquery.colorbox.min.js’, __FILE__), array(‘jquery’), GMW_VER, true);
*********I will wait for an update of the plugin since any changes that I do will be overwritten once they release a fix in their update.
Meanwhile, no lightbox.
Crap! I don’t know how we managed to f*** that up π Publishing an update in 10 minutes.
Sorry guys and girls π
Fixed (v2.01)! Again, sorry about this.
Where can I download the update to manually install?
Latest version is always available on https://wordpress.org/plugins/google-maps-widget/
Thank you for the updated plugin. Lightbox is restored! π
Glad to hear it!
Please take half a minute to rate the plugin. It really helps us out! Thanks – https://wordpress.org/support/view/plugin-reviews/google-maps-widget
Hi GR8FL!
I have the same problem with the latest versionβ¦
Pls, where did you put target=”_blank”?Thank you in advance
This issue was resolved 4 months ago and is still working fine with v 2.3.1. To get to Google Maps from lightbox, simply click on View larger map hyperlink inside the map.
To answer your question about going to a URL to open in another window/tab, use the following syntax (in a text box if you are using a widget), follow this example:
<a href="https://goo.gl/eEbwgx">Directions</a>
thank you
@gr8fl thank you for helping out! Issues been debugged in another thread.
- The topic ‘LightBox Not Working’ is closed to new replies.