Drupal: .htaccess Access Deny
August 21, 2014 – 7:59 am | No Comment

In this article I will tell how to forbid access to certain resources for some clients. The instructions will include descriptions of different directives.

Read the full story »
CSS Templates

Contain reviews and news about CSS Templates.

Freebies

Contain freebies such as icons, graphics, headers and images for your websites.

Fun Stuff

Contains other fun stuff for entertainment or interesting site showcase.

How-To

Contain technical elaborations on some specific workarounds or common tweak.

Joomla Templates

Contains reviews and news about Joomla templates.

Home » How-To

Drupal: How To Highlight External Links

Submitted by on April 23, 2012 – 4:35 pmNo Comment

In this article, I would tell you how to highlight links referring to other sites or external resources. I will give you two ways to do that.

Solutions:

Use External Links module

Download this module here: http://drupal.org/project/extlink

The module finds external links in the content and mark them with a special sign.

Use CSS for external links

You can mark external links with tag with a special style:

HTML:
<a class=”extlink” href=”External’>http://drupal.ru”>External link</a>
CSS:
a.extlink {color: red;} /* Highlighting with red*/

You can also configure appearance of external links from there.

Summary

External Links module makes the same changes but automatically. If you think many users will add external links, it’s better to use the module. If only one author publishes articles, there is less external links or you need a special highlighting of them – makes sense to make all necessary things in CSS. This way you will also reduce server loading.

Leave a comment!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.