How do I change the colour of the vendor map markers

Theme and Plugin Support

How do I change the colour of the vendor map markers Open

Viewing 1 reply thread
  • Author
    Posts
    • #114355
      mike-4531
      Participant

      I want to change the map markers from blue to green, how would I go about doing that?

      Attachments:
    • #114419
      abhirup
      Moderator

      Hi,
      using below code you can change the icon.
      Please add this code in the function.php of the current active theme and add your image URL

      add_filter('wcmp_vendor_list_script_data_params','wcmp_map_image_change',20,2);
      function wcmp_map_image_change($script_param, $request){
          global $WCMp;
          $script_param['map_data']['marker_icon'] = 'image/url/here'; // add your image url here
      return $script_param;
      }
      Copy

      Thank You.

Viewing 1 reply thread

Please LOGIN to reply to this topic

Buy all Marketplace addons together, check out our Bundle

Buy at Slashed Price