Color for defined text
-
Hello.
My client edits his site mostly by himself. He is using certain words frequently and wanted to have these words displayed in red by default.
Using
[function replace_text($text) {
$text = str_replace(‘ausverkauft’, ‘<span style=”color: #ff0000;”>ausverkauft</span>’, $text);
$text = str_replace(‘Achtung! Nur noch wenige Resttickets!’, ‘<span style=”color: #ff0000;”>Achtung! Nur noch wenige Resttickets!</span>’, $text);
return $text;
}]
did the job so far. But not in a table like TablePress. What would be the proper syntax to have it work in TablePress as well?
Any help is appreciated.
Thanks.
Joerg
The topic ‘Color for defined text’ is closed to new replies.