Plugin Author
Joe
(@morehawes)
Hi @sebassg,
Thanks for reaching out! I am glad to hear you like the plugin, reviews are hugely appreciated 🙂
These Controls can be hidden with CSS:
/* This will hide the Controls on *all* Maps */
.waymark-map .leaflet-control-locate,
.waymark-map .leaflet-control-layers,
.waymark-map .leaflet-control-fullscreen,
.waymark-map .leaflet-control-zoom {
display: none;
}
I have put together an example of this here.
I hope this helps and feel free to reach out if you need further help.
Joe
Awesome! Thanks a lot for your swift response, Joe. It works perfectly !
I assume, if I want to apply this to only one map, I have to add an “if … then” condition to the CSS code based on the map’s shortcake ID, right?
Thanks a million again
Cheers!
S.
Plugin Author
Joe
(@morehawes)
Hi @sebassg,
Thanks for the review 🙂
assume, if I want to apply this to only one map, I have to add an “if … then” condition to the CSS code based on the map’s shortcake ID, right?
This type of logic isn’t really available in CSS. However writing CSS rules that target certain class names added by WordPress and Waymark can give you lots of control.
I just put this article together, which I hope you find useful.
Joe
Hi again Joe,
No problem for the review. It is well deserved ! 😉
It worked!… As you might have guessed, I’m not really an expert in CSS (or in coding generally, for that matter), but with the article you sent me, I managed to tweak your first answer so it affect only one map (the tiny one) and not the other…
I just used:
.waymark-map.waymark-map-id-XXXX .leaflet-control-locate,
.waymark-map.waymark-map-id-XXXX .leaflet-control-layers,
.waymark-map.waymark-map-id-XXXX .leaflet-control-fullscreen,
.waymark-map.waymark-map-id-XXXX .leaflet-control-zoom {
display: none;
}
Where “XXXX” is my map ID…
So… thanks a lot again. Problem solved !
Have a great week
Cheers
S.
Plugin Author
Joe
(@morehawes)
Hi @sebassg,
Very glad to hear that helped 🙂
Joe