How To Make Link Clickable By CSS @Wordpress

Status
Not open for further replies.
5 comments
Such things are made possible by a function named make_clickable()1 that can be found in wp-includes/formatting.php. make_clickable() filters the comment_text hook with this:

add_filter( 'comment_text', 'make_clickable', 9 );

Since it is that simple, let’s try adding the same filter to our post contents and see if it works:

add_filter( 'the_content', 'make_clickable', 12 );

Now try refreshing any singular page to check

The priority of 12 as used above simply tells WordPress to make links clickable for post contents after shortcodes are parsed (which is at priority 11). If you don’t like such behaviour, just change 12 to any number you want.

You should take a look at wp-includes/default-filters.php to choose an appropriate priority for make_clickable().


Source: http://betterwp.net/wordpress-tips/make-links-clickable/
 
another solution is, you can try a lightweight plugin called "Automatic Links",it's also has the option to add rel="nofollow" attribute on the links.
 
Status
Not open for further replies.
Back
Top