Heyo, Here's a server side method of wrapping your first word with a span. You can use the above function, or copy & paste the whole thing to your functions.php
CSS Selectors: No first word? Use PHP (WP example)
8
Heyo,
Here's a server side method of wrapping your first word with a span. You can use the above function, or copy & paste the whole thing to your functions.php
function fancy_title($title) {
$clean = explode(" ", $title);
return "<span class='first'>".$clean[0]."</span>". $clean[1];
}
add_filter('widget_title', fancy_title);
Here's a server side method of wrapping your first word with a span. You can use the above function, or copy & paste the whole thing to your functions.php
function fancy_title($title) {
$clean = explode(" ", $title);
return "<span class='first'>".$clean[0]."</span>". $clean[1];
}
add_filter('widget_title', fancy_title);
- theantihype
- [1] reply
- andrejvasso
- theantihype
- [1] reply
- andrejvasso
- mannenb
- RedMatrix
Next Topics on Trending Feed
-
8