Quick tip: How to fix the version update bug regarding the image hyperlink

Quick tip: How to fix the version update bug regarding the image hyperlink

The WordPress default option for images include link of image to the file URL. Using your function.php file, you can add few lines to change this option and protect your settings from future version updates.

Upgrading your WordPress blog to the latest version, you can notice that images are now automatically made into hyperlinks to themselves. This is not quite ok in special when you are working with small size images. Here is a quick tip to fix the bug, and avoid it on future upgrades.

Open your function.php file from theme folder, and:

Add this code to set to “none” the links for images:

update_option('image_default_link_type' , '');

Add this code to make like default option, link of images to the post:

update_option('image_default_link_type' , 'post');

Network News

Feedbox
Published on: July 16th in Wordpress .
Post tags: , , , , , ,

One Comment

Leave A Comment.