New home › Forums › Pro Add-on › General queries › Moving Search/Filter to top of map
- This topic has 9 replies, 6 voices, and was last updated 5 years ago by Perry.
-
AuthorPosts
-
September 16, 2016 at 2:51 am #20954WAEMember
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!
September 16, 2016 at 8:49 am #20958Nick DuncanKeymasterHi 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.September 16, 2016 at 4:29 pm #20962WAEMemberThis reply has been marked as private.September 16, 2016 at 8:00 pm #20963DickiMemberThis reply has been marked as private.September 19, 2016 at 7:32 pm #20988SupportTeamModeratorHi 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?
September 19, 2016 at 7:34 pm #20989WAEMemberI am comfortable making changes to the PHP code (I looked around for what to move/change but have come up short.)
Thanks!
September 20, 2016 at 10:50 am #20999SupportTeamModeratorHi 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?
-
AuthorPosts
- You must be logged in to reply to this topic.