Skip to content

Instantly share code, notes, and snippets.

@purzlbaum
Created August 5, 2013 07:30
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save purzlbaum/6154066 to your computer and use it in GitHub Desktop.
Save purzlbaum/6154066 to your computer and use it in GitHub Desktop.
Attaches a external class to all links outside the domain. I got the code from: http://codegrad.hub.ph/marking-external-links-icon-wordpress/ and I extended it through line 14. The only thing you have to do: search a external link icon. You can find a good one on genericon.com.
/* external links
a.external
background: url('../images/external_link.png') no-repeat right 0px
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment