The Small Business Website Guy

  • Home
  • Blog
  • About
  • WordPress Help
  • Services
    • WordPress Help
    • Hacked Site Cleanup
    • Website Management Program
    • Domain Registration
    • Web Hosting
  • Testimonials
  • Contact Us

November 12, 2012 by John

Remove Links from Post Images

If you’re like me, you’ve probably wondered why WordPress creates by default a link to any image you insert into a post or page. Why would we want to remove links from post images? Read on for the answer.

What’s So Bad about Post Image Links?

What happens when you click that link? You get a page with nothing but the image on it that replaces the page you were reading. You have to know to click the Back arrow in your browser in order to get back to the page you were reading. How many readers do you suppose get lost or annoyed because they clicked the image link and just go off somewhere else rather than take the trouble to get back to your page? You think that might have a negative effect on your bounce rate?

Certainly there are valid reasons to have a link in a post image. You might want to link to a download or reference another site, for example. In my experience, those cases are in the minority. If you do want a link on an image, you also want to direct that link to open in a new tab or window so that visitors don’t surf off to the new location and forget that your site is where they came from.

In my opinion, no link should be the default, but nobody asked me. So, with that in mind, here’s how to remove the default link from a post image.

Before Inserting the Image

If you’re inserting an image into a post, the media library dialog has three buttons under the link field, one of which is “None”. Simply click that button to clear the link field before you insert the image as shown below:

Insert Post Image - Before

After you click the None button, the link field will be empty as shown here:

Insert Post Image - After

Click the Insert into Post button to insert the image without a link.

Existing Images

If you’ve already got images in existing posts, and you feel like taking the time to get rid of the links, you can edit the posts in visual mode and unlink the images as shown below:

Remove Image Link Visual - Before

Be sure your editor is in Visual mode. Click the image to highlight it. The Link and Unlink buttons in the toolbar will show as active. Note the Path shown in the lower left of the editor has an “a >” tag, which is the link tag. Click the Unlink button in the toolbar. The result is shown below:

Remove Image Link Visual - After

Note that the Link and Unlink buttons are now grayed out and the “a >” is gone from the Path in the lower left of the editor.

If you’re really hard core you can edit the post in HTML mode and remove the hyperlink tags that way. Whatever floats your boat!

But, I Want A Link!

If you really want a link on your post image, let’s say to a related site, it’s easy to create one. Simply enter the URL into the link field while you’re inserting the image as shown below:

Image Link to URL

The problem is that you’ll still have the issue of the download page opening in the same window as the original post. Once again, Visual mode to the rescue! Select the image you just inserted as shown below:

Edit Image Link - Visual

Note that the Link and Unlink buttons are active. Click the Link button to edit the existing link. In the resulting dialog, shown below, check the box to open in a new window/tab:

Image Link to URL

Click the Update button and your image link will now open in a new window or tab.

Again, you can go into Geek Mode, if you’re so inclined, and edit the HTML directly by adding a “target=’_blank'” parameter to the hyperlink tag.

Feel free to ask any questions by leaving a comment below.

John
The Small Business Website Guy on Google+

Like this post?  Sign up below to be notified when new posts are published:

johnsmith@example.com
John

Share this post:

Share on TwitterShare on FacebookShare on LinkedIn

Filed Under: Tips and How-To, WordPress

Select Module

Comments

  1. Jeannette Paladino says

    November 13, 2012 at 3:55 pm

    John — thanks for explanation. I just realized in the last few months that the link went to the image. Now I link to an internal page on my site so the visitor doesn’t leave. If it’s my social media bio, then I’m giving the visitor another reason to potentially contact me. So don’t you think internal linking is a good idea?

    • John says

      November 13, 2012 at 8:37 pm

      Hi, Jeannette,

      I’m not the world’s foremost expert on internal linking so I’m probably not the person to answer your question. It’s an interesting question, though, and would certainly be a valid use of image links if done correctly. I know that internal linking can be desirable, and I’ve also heard that it can be done incorrectly, so I would be a little careful about it and do some research to see if there really is a right and wrong way to do it.

      Thanks,

      John

Recent Posts

  • Protect Yourself From Router Exploit
  • Is GDPR Compliance The Problem?
  • Warning! WordPress 4.9.6 Is Coming
  • MalwareBytes Update Issue
  • Google Issues New HTTPS Guidelines

Find Your Domain

Find a domain starting at $0.48

powered by Namecheap

Reach new audiences and grow your following

Privacy Policy | Terms of Use

Copyright © 2007-2022 by Chon Resources – All Rights Reserved Worldwide

We use cookies for various purposes including analytics and personalized marketing. By continuing to use the service, you agree to our use of cookies. - Privacy Policy
Protected by Patchstack