I have a wordpress based site where for widgets have titles like
- Browse By Category
- Shopping Cart
- Newsletter
- Community Poll
- etc
Now, I want to display first word of each widget in blue colour and remaining words in black colour.
How do I do that?
(i.e. Browse, Shopping, Newsletter, Community in blue colour rest in black color)
I guess, we can do this using jQuery but I have no idea, how to do that.
EDIT:
Site: http://granitess.com/wp/
You can try this, get iterate all
.widget-title, get its text, split by space and change first word with<span style='color:blue;'>and then join all words and set in.widget-titlehtml. likeEdited:
On your side your widget title is in
.widget h3So try this –or If you want same like as in your footer then you can try this