• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2754

Original WordPress Tutorials & 6000+ Guaranteed Code

Snippets

  • Premium Access
  • Log in

Remove Clickable HTML Links in Comments

I received a request about how to make all clickable links left in comments to non clickable. They told me they’re using a plugin for this but wanted a simple code solution, so here it is.

Turns all hyperlinks like this:

clickable

Into non clickable links:

non-clickable
Just add this line of PHP code to the end of your child themes functions.php file using a code editor.

Register for full access

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

Advertise · WPEngine · Genesis · Log in

  • Access Problems
  • Account Details
  • Consulting
 

Loading Comments...
 

You must be logged in to post a comment.