WordPress Plugin: Identify External Links
Identify External Links will add a special CSS class to all links in your entries and in your comments that go to external sites (sites other than your site).
Many people thought WordPress 2.8 would be released on June 10th, and only an hour and a half before the end of the day...
Today, I logged into Blogging Pro and saw an interesting message that caught my eye: "Akismet has protected your site...
So today I hit the road to attend the first annual WordCamp Chicago, an...
Identify External Links will add a special CSS class to all links in your entries and in your comments that go to external sites (sites other than your site).
A plugin? All that’s needed is a little CSS modding, via the edit theme control panel in 1.5. You can even add a logo for e-mail.
/* link hack */#content a[href^="mailto:"] {
background: transparent url('/images/email.gif') 100% 50% no-repeat;
padding-right: 10px;
}
#content a[href^="http:"], #content a[href^="http:"] {
background: transparent url('/images/external.gif') 100% 50% no-repeat;
padding-right: 10px;
white-space: nowrap;
}
#content a[href^="http://www.your-own-url.com"],
#content a[href^="http://your-own-url.com"] {
background: inherit;
padding-right: 0px;
}
That’s loosely based on the code from web-graphics.com, and it works fine on any application I’ve used it for.