Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Marketplace (WooCommerce Multivendor Marketplace) › Help with forum post #70581 / Making default location on map load
- This topic has 1 reply, 2 voices, and was last updated 5 years, 5 months ago by WCFM Forum.
Viewing 1 reply thread
- AuthorPosts
- July 1, 2019 at 3:32 pm #70585BaileyconceptsParticipant
I can’t reply on that forum thread, It says I am not logged in for some reason.
I have attached the last message I received.
In my request for help regarding changing the default load location of the map.My latlong is : Latitude – 35.793282 Longitude – -83.558838
Thank you so much for the help, I look forward to your response.
Attachments:
You must be logged in to view attached files. - July 4, 2019 at 5:28 am #70938WCFM ForumMember
Hi,
Please add this code to your child theme’s functions.php –
add_filter( 'wcfmmp_map_default_lat', function( $lat ) { return –35.793282; }); add_filter( 'wcfmmp_map_default_lng', function( $lat ) { return -83.558838; });
Well, if you do not have child theme then add this code using this plugin – https://wordpress.org/plugins/code-snippets/
Thank You
- AuthorPosts
Viewing 1 reply thread
- You must be logged in to reply to this topic.