Map
This topic contains 16 replies, has 3 voices, and was last updated by Scott Macdonald 10 years, 10 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
March 23, 2015 at 10:50 am #34894
hi there would I be able to use the map and link the icons to other web pages other than the standard ones it produces
here is a site I have http://www.hutsandcabins.co.uk
and I want to produce this type of idea
http://www.wigwamholidays.com/Wigwam_Site_Locations
thanbks
March 23, 2015 at 12:17 pm #34899Hi Scott, not sure I get you, do you want to redirect to another website when clicking on the pin in the map rather than going in the “detail” page?
March 23, 2015 at 12:38 pm #34903hi sorry what i am trying to say is yes click on the pin on the map or the link on the pop up and it can take you too any page on the same site
can you choose where the it can link to ?
March 23, 2015 at 2:07 pm #34914What you could do is to add a custom field with a link, and then add a function in that infomap window. Ive spoke with Stiofan and he’s going to add a new action in order to do that.
March 23, 2015 at 2:10 pm #34916Hi Scott,
This depends on exactly what you want to do, there is a filter there for the html output “geodir_custom_infowindow_html” and i have just added an action for after the meta info, which will be in the next release “geodir_infowindow_meta_after” which could both help.
Thanks,
Stiofan
March 23, 2015 at 2:26 pm #34918brilliant thanks I think your plugin could be great for my website http://www.hutsandcabins.co.uk
March 23, 2015 at 2:31 pm #34919Looks perfect for it, and also i’m Scottish 🙂
March 23, 2015 at 2:32 pm #34920cool I’ll give it a go then 🙂
March 23, 2015 at 4:03 pm #34931I’m not seeing how to add a custom link sorry
and where is the filter for the html output “geodir_custom_infowindow_html” ?
thanks
scott
March 23, 2015 at 5:11 pm #34942It would be harder to add it with the filter, you would have to do a strip replace for positioning. The new hook once released will allow you to add a link like the following example (would be added to your child theme functions.php)
add_action('geodir_infowindow_meta_after','my_custom_link_in_infowindow',10,2); function my_custom_link_in_infowindow($post_obj,$preview){ echo "<a href='#'>MY LINK</a>'; }Thanks,
Stiofan
March 23, 2015 at 5:13 pm #34943When will the new release be ready with it ? thanks
March 23, 2015 at 5:53 pm #34952Hi Scott,
Hoping to release tomorrow but you can see the change here:https://github.com/GeoDirectory/geodirectory/commit/9fd5672afbb5fe7bc1cea98014b6148541b2f6e5
Or even download our latest dev version here: https://github.com/GeoDirectory/geodirectory/archive/master.zip
Project home: https://github.com/GeoDirectory/geodirectory
Thanks,
Stiofan
March 23, 2015 at 5:55 pm #34953thats great thanks
one quick question can i change this header http://www.hutsandcabins.co.uk/places/united-kingdom/moray/forres/wigwams/east-grange-wigwams-campsite/
March 23, 2015 at 5:56 pm #34954not sure what you mean by that?
March 23, 2015 at 5:57 pm #34955sorry the image in the header I can’t see where to change it
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket