Jun

16

Style Links with CSS by Category – WordPress

A recent WordPress project required having a recent posts widget that each link was styled differently with CSS based on what category the post came from. A bit of a jargon loaded sentence I admit. Basically, if a “recent post” link in this widget was from the “Tools” category (for instance) then it could be [...]

0 Comments

Mar

31

Style Wikipedia Links Automatically – CSS and RegEx

I recently got the idea to have all my external links to Wikipedia have a little “W” icon next to them in order to indicate that the links went to Wikipedia. The solution I came up with is to use some CSS and Regular Expressions to automatically add the image to any URLs that have http://en.wikipedia.org/ [...]

0 Comments