Store Locator Plus® for WordPress › Forums › Store Locator Plus › Featured entries on map
- This topic has 4 replies, 2 voices, and was last updated 7 years, 10 months ago by Wolfram.
-
AuthorPosts
-
February 17, 2017 at 11:26 AM #45100WolframParticipant
Hi, we have the Experience and Power plugin active – so, if we have entries/locations marked as featured, the map displays them all, no matter what radius search a user enters – this makes the whole thing a little “crowded” if you have a lot of featured entries – i.e. if someone searches within radius of 100km around his city, the map shows all featured entries, disregarding the initial user radius – because entries are distributed all over Germany.
Is it possible to ignore display of all featured entries on the map? They are displayed in the results anyways.
And another thing:
Is it possible to link directly to store page when clicking on a result (not jump to map) – if you have a long list you click on a result and see nothing happen since the map is at the very top…. would be great to be able to link to store page with click on result.Thanks!
February 19, 2017 at 3:24 PM #45120CiciKeymasterHi Wolfram , We may have to divide the question on two posts, sorry.
You can change the ALWAYS show featured under Experience, but then select ONLY show if in radius and adjust radius default to a lower number should do the trick.
https://docs.storelocatorplus.com/blog/featuring-locations-top-of-results-and-highlighting/
as far as Pages…see the docs for Pages I do not use Pages so may not be the best person to answer the question. I am pretty sure that can be done with your page template and short codes.
https://docs.storelocatorplus.com/blog/generating-store-pages/
If you still have a question after researching the docs site about Store Pages could you post it as separate post? thanks
February 20, 2017 at 3:26 AM #45124WolframParticipantHi Cici,
we have to keep setting “”Always show” for featured entries – I set the initial search radius to 200 but this doesn’t seem to have an effect – or only if I have fetured posts set on “Only show when in radius”….? Is there a workaround……? 🙂
As for the other question: This might be a question where to change/edit the link that the base plugin uses to link to bubbles – then I could change it to link to store pages (IF I can find out the general shortcode/term to link to store pages….)
Thanks.
February 20, 2017 at 9:46 AM #45136WolframParticipantFor the 2nd part as what happens when an entry is clicked…. I found this in file
plugins/store-locator-le/js/slp.js :
// Whenever the location result entry is <clicked> do this…
//
jQuery( ‘#slp_results_wrapper_’ + markerListNatural[markerNumber].id ).on(
‘click’ ,
null,
{ ‘info’ :markerListNatural[markerNumber], ‘marker’ :this.markers[markerNumber] } ,
_this.handle_location_result_click
);So…. how do I change this to open the store page right away / link to store page?
February 22, 2017 at 10:26 AM #45170WolframParticipantI just found a solution!
In Experience -> Results -> Appearance
wrap the whole div id=”slp_results_[slp_location id]” …..
with a href=”[slp_location sl_pages_url]”
and a closing tag at the very end of everything – this makes the clicks on the results show up on the map but then automatically link to the store page of the result. Hope this helps someone
-
AuthorPosts
- The topic ‘Featured entries on map’ is closed to new replies.