How to change the default media linking option in wordpress

You may have noticed when you upload your images to WordPress for a blog post, you are presented with some options regarding your image’s display settings. One thing I find overlooked here is the “Link To” option. I know it is often overlooked because when I go on blogs I can usually click the images on a blog post and it redirects me to the image in a blank page. This is one of the biggest no-no’s, by allowing your user to do this you will potentially lose them!


insert media into post screenshot


It’s wise to, before inserting your image into your post, change the “Link To” option to “None”, this way the image will not be clickable.


Screen Shot 2014-08-11 at 14.23.49


You may find after you do this for a while it starts to becoming annoying and laborious (this is where I am at now!) and wish that the “Link To” option automatically have the “None” option selected. To do this, simply paste the following code into your themes function.php file or your blog’s custom functions plugin (what the hell is that?).




Now, when you go to create/edit a post, your “Link To” option will now have  “None” selected by default.


chloe-signature