Connect with us

Wordpress Plugins

How To: Change Default Image Links in WordPress

Have you ever added a new image to a post only to realize that it was linked by default? You could easily remove the link or change attachment settings when adding new images to your posts. If you never want your images to link to anything, you may want to change your attachment settings. There are various ways to do that. The easiest way is to visit the wp-admin/options.php file on your server and change the value for the image_default_link_type field.

🛠️ Divi Builder drag & drop page builder for WP

default-image

If you feel comfortable changing your functions.php file, you could always use the update_options function to change the default settings for your images. Once you have changed these values, you don’t have to worry about your images being hyperlinked by default.

your-functions

There are other plugins and code snippets that let you customize how images are inserted and displayed on your website. If your just need to change the default display settings for attachments, the two ways mentioned above should work.

Continue Reading
You may want to check out:
*some of our articles and lists include affiliate links to fund our operations (e.g. Amazon, Elegant Themes, Envato). Please read our disclaimer on how we fund Exxponent.
Click to comment

Leave a Reply

Your email address will not be published. Required fields are marked *

More in Wordpress Plugins

To Top