How do I stop images from linking to media file?

Hey all. I’m having the most frustrating issue that I literally cannot find an answer for.

Every time we upload a new image to our site, it adds a link to the image in our media library by default. As in, a reader can click the photo and it will open the link to the photo (/wp-content/).

I can manually disable this by removing the link for a photo, but it’s extremely annoying having to do this on every single photo we upload to the blog.

Is there a setting somewhere that will set the default to “no link”? Or a snippet of code I can insert?

There’s gotta be a way. I’m pulling my hair out lmao. Thank you!


This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer