How to change the permalinks of images in the WordPress media library

Marc Wag­ner

June 8, 2021

2 min read|

Do you know this? You open a link and are redi­rec­ted to an image from your media libra­ry ins­tead of your page?

image 1

Exact­ly this can hap­pen as soon as you upload the images on Word­Press via the media libra­ry. The reason is quite simp­le. Images are trea­ted like pages and posts on Word­Press. For this reason, you also get a per­ma­link on Word­Press.

When uploa­ding the images, the per­ma­links are auto­ma­ti­cal­ly gene­ra­ted from the name of the file.

Where can I find the permalink? #

The per­ma­link for images from the media libra­ry on Word­Press is a bit hid­den. But once you figu­re out whe­re to find it, it’s easy to chan­ge it.

First, you need to go to the media libra­ry and sel­ect the image you want.

image 3

When you sel­ect an image, the Attach­ment Details win­dow opens with infor­ma­ti­on about the image. At the bot­tom right you will find the link “Edit more details”. Fol­low this to get to the “Edit file” page.

The view should now look fami­li­ar to you — it is simi­lar to that of posts and pages. Under the title, you will now also see the per­ma­link for the image.

How to change the permalink #

To chan­ge the per­ma­link, you first need to cus­to­mi­ze the view. You can find the opti­on “Cus­to­mi­ze view” in the top right cor­ner under your pro­fi­le name.

image 4

Now more opti­ons appear with ele­ments that you can show. To edit the per­ma­link, you must now check the “Title form” box.

image 5

Now go to the bot­tom of the page. The­re you will find a new input field with the descrip­ti­on title form.

image 6

Replace the text in the field with any new name. This will adjust the per­ma­link. Make sure that the name is not alre­a­dy taken, other­wi­se the chan­ge will not be appli­ed.

To save the who­le thing and set the new per­ma­link, you have to save your chan­ges. To do this, click on the “Update” but­ton as usu­al. You can usual­ly find it in the right side­bar.

image 7

Summary #

In this tuto­ri­al, you lear­ned how to chan­ge per­ma­links for images from the media libra­ry on Word­Press.

This will sol­ve the pro­blem of dis­play­ing an image ins­tead of your blog post or page.

Unfort­u­na­te­ly, per­ma­links for media can­not be com­ple­te­ly dis­ab­led on Word­Press, wit­hout fur­ther ado.

88e86fcb816eff22bc917094df2862d8dd5c0e978b333e6dd5f36f808990c261 96

Arti­kel von:

Marc Wag­ner

Hi Marc here. I’m the foun­der of Forge12 Inter­ac­ti­ve and have been pas­sio­na­te about buil­ding web­sites, online stores, appli­ca­ti­ons and SaaS solu­ti­ons for busi­nesses for over 20 years. Befo­re foun­ding the com­pa­ny, I alre­a­dy work­ed in publicly lis­ted com­pa­nies and acqui­red all kinds of know­ledge. Now I want to pass this know­ledge on to my cus­to­mers.

Hast du eine Fra­ge? Hin­ter­lass bit­te einen Kom­men­tar