Moving Search/Filter to top of map

New home Forums Pro Add-on General queries Moving Search/Filter to top of map

Tagged: ,

  • This topic has 9 replies, 6 voices, and was last updated 5 years ago by Perry.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #20954
    WAE
    Member

    I would like to move the ‘search’ filter from below the map, to above it. I have tried CSS but it goes out of whack in responsive mode. Ideally, it would line up with the other search boxes, or off to the right.

    I have searched the forum and wasn’t able to find anything. Any help would be appreciated. Thank you!

    #20958
    Nick Duncan
    Keymaster

    Hi WAE
    Thanks for getting in touch 🙂

    Which search are you referring to?
    Please also provide me with a link to your map page so I can familiarize myself with it.

    #20962
    WAE
    Member
    This reply has been marked as private.
    #20963
    Dicki
    Member
    This reply has been marked as private.
    #20988
    SupportTeam
    Moderator

    Hi WAE

    Your previous post contained login details that we recommend should not be visible on the forums. I’d recommend changing them – I have however made your post private so that only you and I can see the details.

    Moving the filter dropdown would require making changes to the PHP code. Would you be comfortable in doing this?

    #20989
    WAE
    Member

    I am comfortable making changes to the PHP code (I looked around for what to move/change but have come up short.)

    Thanks!

    #20999
    SupportTeam
    Moderator

    Hi WAE

    Please go to ‘wp-google-maps-pro/wp-google-maps-pro.php’.

    You’re going to want to search for the variable $wpgmza_marker_filter_output and move it accordingly in two places.

    On line 2953:

    ".wpgmaps_check_approval_string()." 
    ".wpgmaps_return_marker_anchors($wpgmza_anchors)." 
    $wpgmza_marker_filter_output 
    ".apply_filters("wpgooglemaps_filter_map_output","",$wpgmza_current_map_id)." 
    ".(!isset($map_other_settings['store_locator_below']) ? "$sl_data" : "")." 
    ".(isset($map_other_settings['store_marker_listing_below']) ? "$wpgmza_marker_list_output" : "")."
    
    ".apply_filters("wpgooglemaps_filter_map_div_output","<div class=\"wpgmza_map\" id=\"wpgmza_map_".$wpgmza_current_map_id."\" $map_style> </div>",$wpgmza_current_map_id)."

    Must be moved to 2956:

    ".apply_filters("wpgooglemaps_filter_map_output","",$wpgmza_current_map_id)." 
    ".(!isset($map_other_settings['store_locator_below']) ? "$sl_data" : "")." 
    $wpgmza_marker_filter_output 
    ".(isset($map_other_settings['store_marker_listing_below']) ? "$wpgmza_marker_list_output" : "")."
    
    ".apply_filters("wpgooglemaps_filter_map_div_output","<div class=\"wpgmza_map\" id=\"wpgmza_map_".$wpgmza_current_map_id."\" $map_style> </div>",$wpgmza_current_map_id)."

    And line 3012:

    $wpgmza_marker_filter_output 
    ".(!isset($map_other_settings['store_locator_below']) ? "$sl_data" : "")." 
    ".(isset($map_other_settings['store_marker_listing_below']) ? "$wpgmza_marker_list_output" : "")."
    
    ".wpgmaps_return_marker_anchors($wpgmza_anchors)." 
    ".apply_filters("wpgooglemaps_filter_map_div_output","<div class=\"wpgmza_map\" id=\"wpgmza_map_".$wpgmza_current_map_id."\" $map_style> </div>")." 
    ".(isset($map_other_settings['store_locator_below']) ? "$sl_data" : "")."
    
    ".(!isset($map_other_settings['store_marker_listing_below']) ? "$wpgmza_marker_list_output" : "")."

    Must be moved to 3019:

    ".(!isset($map_other_settings['store_locator_below']) ? "$sl_data" : "")." 
    ".(isset($map_other_settings['store_marker_listing_below']) ? "$wpgmza_marker_list_output" : "")."
    
    ".wpgmaps_return_marker_anchors($wpgmza_anchors)." 
    ".apply_filters("wpgooglemaps_filter_map_div_output","<div class=\"wpgmza_map\" id=\"wpgmza_map_".$wpgmza_current_map_id."\" $map_style> </div>")." 
    ".(isset($map_other_settings['store_locator_below']) ? "$sl_data" : "")." 
    $wpgmza_marker_filter_output 
    ".(!isset($map_other_settings['store_marker_listing_below']) ? "$wpgmza_marker_list_output" : "")."

    I hope this helps?

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.