Hello,
When the Google map opens up the plugin loads all the links as pop ups.
So you go to the homepage and then 7 pages try to open up, and do if you do not have a pop up blocker on.

Home


Anyone know how to stop this from happening?
Regards
Neil

Public
Hello,
I am not getting any pop up at page load and your map page works great at my end. I think you are getting a cache issue that's why you are facing that type of issue. Please clear your cache and your issue will be resolved.

Thanks
#1
Public
Hi,
I have tried clearing my cache, but it is still doing it. I am not the only one seeing it, it was reported to me.
Any other ideas?
Also is there a way where the pins don not open a new tab when clicked, but instead open the page on the same tab?
Thanks
Neil
#2
Public
Hello,
#1 This is really strange, I am not getting any type of pop on page load. Your Map is working great at my end. I have enclosed screenshot.
#2 Yes, this is absolutely possible to load the redirect link on a same tab. You have to make small changes in plugin core maps.js
You will find this code there at line number 4013
Before:

if (place.location.open_new_tab == 'yes')
window.open(place.location.redirect_custom_link, '_blank');
else
window.open(place.location.redirect_custom_link, '_self');


After:

if (place.location.open_new_tab == 'yes')
window.open(place.location.redirect_custom_link, '_self'); //only change it to self
else
window.open(place.location.redirect_custom_link, '_self');


Please try this and your redirect link will be open on a same link.
Thanks
#3
Public
Hi,
I can not find the line you have described.

Map.js only seems to go to 700 and something.

It is also saying that there is errors that needs fixing before I can update.

See attached image.
Regards
Neil
#4
Public
Hello,
Are you using PRO version or Free version? Please let me know and make changes in plugin core files via using FTP.

Thanks
#5
Public
Hi,

I have changed the code, but it still opens up a new page.

Any other suggestions?

I am using this version: WP Google Map Plugin Version 4.0.1

Regards

Neil
#6
Public
ok, you are using a free version of plugin and here line number is changed, So please go to line number 728 at assets/js/maps.js
You will see this code there
Before:
if (place.location.onclick_action == "custom_link") {
if (place.location.open_new_tab == 'yes')
window.open(place.location.redirect_custom_link, '_blank'); ///Make it self
else
window.open(place.location.redirect_custom_link, '_self');

After:

if (place.location.onclick_action == "custom_link") {
if (place.location.open_new_tab == 'yes')
window.open(place.location.redirect_custom_link, '_self'); //Make changes Here
else
window.open(place.location.redirect_custom_link, '_self');


Please check the screenshot ,Your issue will be resolved.
Thanks
#7
Public
Hi,
Ok, we are getting somewhere.
However, now it redirects from the homepage to the first link instantly.
Any ideas?
Regards
Neil
#8
Public
Hello,
It will redirect you to your inserted Link. Those link you have inserted it will redirect there without opening another tab.

Thanks
#9
Public
Hi,
I agree, only when you click the link though.
It is redirecting instantly when the page loads, so you cannot see the home page.
Is this happening at your end?
Regards
Neil
#10
Public
No, this is not happening on our side. Please share your page URL so we can check it.
Thanks
#11
Public
Hi,
It is at the top of this feed.
http://sleafordheritage.co.uk
Regards
Neil
#12
Public
Hello,
yeah, when you remove URL link is it ok at your end? Please let me know. Please send me your wp-admin details so we can also check it at your end.

Thanks
#13
Public
Hello,
Your provided credentials are not working. Please give me proper details.
Thanks
#15
Public
Hello,
Please check it now, we have resolved your issue.
The issue was you have enabled open infowindow checkbox with "Redirect" Selection at add/manage location so plugin tries to open the infowindow by default but it is not selected because redirect radio button is selected. So Plugin open redirect link.

I have disabled the checkboxes and your issue is resolved.

Thanks
#17
Public
Brilliant,
Thanks for your help.
Regards
Neil
#18

Please login or Register to Submit Answer