I would like to remove the map from showing and calling API’s everytime you fill location and click on search button for requests. We only need it to be shown on individual requests and not every time for everyone with and after every single search.
Just to clarify, do you want to remove the map from both the search results page and the all listings page, while keeping it only on the single listing page? If that’s what you need, I can suggest a simple snippet to achieve this. Let me know!
Yes please. Needed it only for requests but now when I think about it, it would be best to restrict the map on requests result search page and also on listings results page. Need the map to show only on individual listings and individual requests after you click on it/view it.
Sadly, That didn’t work. On listings I’m currently using this css:
.hp-link--hide-map.hp-link{ display: none !important; } .hp-template--listings-view-page .hp-map { display: none; } and it works great, but it’s not for requests, only for listings and also it just hides it. As you stated in your post, that’s not enough to prevent it from calling unnecessary API
Thanks for code, It works for me but only when searching for listings. But we also need it for requests, so it doesn’t show the map when searching requests