[Plugin: Visitor Maps and Who's Online] Minor Code Tweak to Facilitate CSS
-
Hi Mike,
One of the themes I use does not display the widget statistics the way I’d like. It wasn’t indenting the stats at all, which didn’t look right. It’s a quirk of the theme, which has the same problem with some other widgets, too.
I figured out how to fix this with CSS, but I ran into some limitations related to the use of
<br />
to start a new line. It turns out to be better, from a CSS standpoint, to use</p><p>
instead of<br />
to start a new line. That way, CSS has something to grab onto for each line if you want to control the indentation.I edited my copy of the plugin to replace
<br />
with</p><p>
everywhere in the functionvisitor_maps_widget_content()
I was then able to use this CSS to indent the stats:
#visitor-maps p:before {content: " ";}
Those are hard spaces inside the quotes. Ordinary spaces won’t work.
Would you consider making this tiny code tweak in a future release of the plugin? That would be a big help to people who want to use CSS to style the output of the plugin.
Thank you,
Fred Chapman
[ Signature moderated. ]
- The topic ‘[Plugin: Visitor Maps and Who's Online] Minor Code Tweak to Facilitate CSS’ is closed to new replies.