How to Remove Image Link from entire WordPress website

Sometimes it’s necessary to remove image link system. You went through some posts where the images are not clickable. You can only see the image on the page but can’t click.

Maybe they unlinked all images manually or they used a stable system to remove image links automatically.

Using function.php file you can get rid of this issue within a second. If you are nontech, then follow the second method. 

Copy the following code and paste it inside your function.php file. Then update the file and check your image link.

				
					//Remove Default Image Links typeremove_image_link
add_action('admin_init', 'jltwp_adminify_imagelink', 10);
function jltwp_adminify_imagelink()
{
    $image_set = get_option('image_default_link_type');

    if ($image_set !== 'none') {
        update_option('image_default_link_type', 'none');
    }
}
				
			

Remove Image Link Using WP Adminify

You can do this from your WordPress dashboard using the WP Adminify plugin. After the plugin installation, click on the WP Adminify option from your dashboard menu. 

Navigate to Tweaks > Attachments

Search for the Remove Image Link option and enable it. That’s how you can disable image link from your website dashboard.

Remove Image link using WP Adminify

That’s all about image link removal from a WordPress website. Feel free to apply any method that you prefer.

Was this article helpful?

© 2021 - Adminify | All rights reserved

WP Adminfy accepted payment methods