Help with forum post #70581 / Making default location on map load

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Multi Vendor Marketplace Plugin | WCFM Marketplace Forums WCFM – Marketplace (WooCommerce Multivendor Marketplace) Help with forum post #70581 / Making default location on map load

Viewing 1 reply thread
  • Author
    Posts
    • #70585
      Baileyconcepts
      Participant

      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.
    • #70938
      WCFM Forum
      Member

      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

Viewing 1 reply thread
  • You must be logged in to reply to this topic.