filter - How to customize with css special characters like comma , vertical bar, point and so on? -


enter image description here

for example want have commas (or whatever other characters this: " /, |, &, $ and on " ) text in different colors.

is possible?!

you use spans separate commas or ampersand rest of text

<p> text <span style="color:pink">/</span> text ....</p>

i don't think yet possible using css

in php theme text preg_replace add spans around comma, ampersand, slash, etc.

http://php.net/manual/en/function.preg-replace.php

or str_replace

<?php str_replace(',', '<span class="pink">,</span>', $string); ?> 

for wordpress add suggested code template file, more info templating see: http://codex.wordpress.org/stepping_into_templates


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -