• simonc17

    (@simonc17)


    Hi,

    Plugin is great but how do I change the default font family and font size to inherit those of my theme? I have tried setting both of these by overriding in custom css the values in the class .leaflet-container using !important but it doesn’t work everywhere (e.g it works in the pop-up but not on the hover title).

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author bozdoz

    (@bozdoz)

    Interesting question. I’m not sure. I’d have to look at the css to see if it’s being affected by anything on the leaflet side

    Plugin Contributor hupe13

    (@hupe13)

    One possibility would be to put the popup in a div with style or class attribute. It doesn’t seem to work for title. But if you use hover from the Extensions plugin, the title content is equal to the popup content:

    [leaflet-map fitbounds]
    [leaflet-marker lat=... lng=...]<div style="font-family: cursive;">Start</div>[/leaflet-marker]
    [hover]
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change default fonts and colours’ is closed to new replies.