-
AuthorPosts
-
September 22, 2018 at 6:56 pm #1013115
Hi
I am using the plugin WP store locator
I want to hide the start marker and according to this link in the theme functions.php file which I have done and it doesn’t work (I put in the child’s php file)
https://wpstorelocator.co/document/hide-start-marker/I need to place the following coding in
add_filter( ‘wpsl_js_settings’, ‘custom_js_settings’ );function custom_js_settings( $settings ) {
$settings[‘startMarker’] = ”;
return $settings;
}I also want to hide the directions and tried adding the following coding to both the quick.css and CSS neither of which worked.
.wpsl-directions {
display: none !important;
}Can you help, please?
Thanks
September 22, 2018 at 8:40 pm #1013129Hi info224!
I added this code to the quick css field to solve both issues:
#top #wrap_all .wpsl-gmap-canvas img[src*="red@2x"], #top #wrap_all .wpsl-icon-direction { display: none !important; }
I had to purge the server cache (Admin Bar > Performance > Purge All Caches)
Cheers!
PeterSeptember 23, 2018 at 9:55 am #1013259Hi
I’m sorry but when I try adding it, it doesn’t work :( I purged the cache both on the server and the browser.
September 23, 2018 at 10:18 am #1013262Hi,
But it works on my end (screenshot: http://s3.amazonaws.com/feather-files-aviary-prod-us-east-1/5c5f873d5/2018-09-23/64bd3541bc6c4133b2c34dce7e5763e6.png ). The red marker is now hidden and the directions button is also hidden (blue arrow). Please try to clear the browser cache again, maybe try to view the map with another browser.
Best regards,
PeterSeptember 24, 2018 at 11:40 am #1013558Hi
Yes, you’re right it does, brilliantly thank you. I was hoping to hide a couple of other things please see the image
I tried to hide the street name using the below in the quick css but it didn’t work :(
.wpsl-street { display: none; !important; }
September 24, 2018 at 1:22 pm #1013591Hi,
Please use this code to hide the street name + directions link:
#top .wpsl-directions, #top .wpsl-street{ display: none !important; }
Best regards,
PeterSeptember 24, 2018 at 2:28 pm #1013634Prefect thank you
September 24, 2018 at 2:49 pm #1013642Hi!
Great, glad I could help you :)Regards,
Peter -
AuthorPosts
- The topic ‘Location Plugin’ is closed to new replies.