HOW TO REMOVE IMAGE DEFAULT LINK IN AUTO WORDPRESS

WordPress provides a lot of convenience for its users, as well as the business of uploading images and creating image galleries. However, one annoying thing is that when you add an image to a WordPress post, the image link is automatically added. You can uncheck this when adding a new image, but sometimes you also forget to uncheck this. In this article, we will show you how to remove default image links in WordPress automatically.

WHY YOU MUST TURN OFF IMAGE DEFAULT LINKS IN WordPress 

In general, the image link in WordPress will go to the place where the image is stored. If the user sees the image and clicks it will be immediately taken to the page where the image is, and through this page, the user has two choices: click the ‘back’ button in their browser or by moving to another site, and that is certainly very very annoying. This will affect the SEO of the website and can increase the bounce rate of our website.

The solution is that you have to disable image links when you include images in your posts, but this is not easy because you need more time or you can often forget, you can also learn how to remove the image in WordPress, you can visit https://www.heizt.de.

A very easy way to disable the default image is to add this code snippet into your WordPress theme’s functions.php file.

[php]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);[/php]

Another way is to install and activate the No Image Link plugin. This plugin will work automatically and has no options to configure. However, this plugin will run options on every existing page, so it would be better to use the first method.

About the author: santika

Related Posts