How to add style to a string of text throughout WordPress website?
If it’s purely for setting the style of the text you may want to use JavaScript/jQuery instead. Here’s a quick sample that would replace all instances of “ipsum” with <span class=”red”>ipsum</span> And the full code: // Find text in descendents of an element, in reverse document order // pattern must be a regexp with global … Read more