30 Mar2005
Posted by as WordPress Plugins
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).
Do you like this article? Submit it to Blogosphere News!
Andy
March 30th, 2005 at 11:55 am
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;
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.
background code myspace
January 24th, 2007 at 4:16 pm
background code myspace…
MySpace Is Not My Space. MySpace Is For Adults. From a marketing…
Copyright © 2005 - 2008 Splashpress Media
2 Responses
Andy
March 30th, 2005 at 11:55 am
1A 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.
background code myspace
January 24th, 2007 at 4:16 pm
2background code myspace…
MySpace Is Not My Space. MySpace Is For Adults. From a marketing…