How to Automatically Remove Image Links in WordPress - WordPress makes it easy for users to various things, as well as uploading photos or images and create image gallery. However, one part of which is really annoying when adding images to posts WordPress is an image link that is automatically appended. You can uncheck when adding an image, but sometimes you forget to uncheck it. In this article we will show you how to automatically delete the default image link in WordPress.
WHY YOU SHOULD REMOVE THE DEFAULT IMAGE LINKS IN WORDPRESS
By default, image link on Wordpress, toward where the images are stored. A user if the user sees the image and click, it will be taken to a page images, and from this page the user has two options: click the 'back' button on their browser or move to another site, and it is certainly very annoying. It also affects your image SEO traffic because search engines can direct users to a link that is used for an image instead your posts. Overall, it creates a poor user experience and affect the level of your site's bounce rate.
One solution is that you must disable image links, every you will insert the image into the post, but of course it will slow down your work and sometimes you forget to do so.
REMOVE THE DEFAULT IMAGE LINKS
It is very simple to disable the default images link in WordPress. All you have to do is add the following code snippet in functions.php file in your wordpress theme.
function ck_imagelink_setup() {
$image_set = get_option( 'image_default_link_type' );
if ($image_set !== 'none') {
update_option('image_default_link_type', 'none');
}
}
add_action('admin_init', 'ck_imagelink_setup', 10);
Another way to do this is to install and activate No Image Link plugin's. This plugin works automatically and there is no option to configure. However, plugins run option on each page, so it is better to just add the code yourself.
Also Read: How to Automatically Remove Image Links in blogger
Hopefully the above article to assist you in removing the image links automatically when you insert the image in the post.
EmoticonEmoticon