Link symbol imageWordPress default settings are somewhat awkward: if you insert an image (or any picture or media) in a post, the inserted image will link to itself. A visitor who reads your post will see a “hand pointer” when his mouse pointer goes over the image, and he may want to click on the image.

The image link only links to the image itself. This behavior is really problematic, as links should link to something interesting, and should not frustrate the visitor.

Solution 1: set image default link type to ‘blank’ in the hidden WordPress options menu

There are some solutions to remove the automatic link to image files on posts. This WordPress Forum post shows a quite elegant solution using the “secret” WordPress options menu at:

example.com/wp-admin/options.php

Look for the option ‘image_default_link_type” and change to “blank”. Unfortunately this tuning may be overwritten by future WordPress updates.

Solution 2: set the default link type to none in functions.php

This solution is has the same result as solution 1, but won’t be overwritten by an update. Add the following lines to your theme’s functions.php file:

 Solution 3: use a plugin to remove image links

If you don’t want to mess up with functions.php, there is a simple plugin well-named “no image link” which will do all this for you.

Solution 4: remove image links in existing posts

Unfortunately, solutions 1 to 3 only works for new posts, all existing posts will stay with their old image links. Try out this script from CFX design to remove image links in existing posts.