How to Change Your Media Item permalink/URL (Step by Step)
Problem: Unable to change unattached image permalink from the media library
I have an image whose permalink is the same as a WordPress page Stencils Videos. The problem is image was uploaded before creating the page. So image took the URL domain.com/stencils-videos first and the page got a permalink of domain.com/stencils-videos-2, obviously, you don’t want a URL like this for a page. So I would like to swipe the permalink between page and image.
When I tried to edit the Image permalink in Media Library, I noticed that when the media file is not Attached to a page the permalink is not editable. When they are attached, permalink editing is permitted.
Without editing the image permalink first I can’t change the Page permalink.
Solution
Step -1: Go to Media Library
Step-2: Find the Image. Click on Edit more details
![](https://blog-tawfiq:8890/wp-content/uploads/2019/11/How-to-Change-Your-Media-Item-permalinkURL-Step-by-Step-2.png)
Step 3: Click the Screen Options downward triangle in the upper right of the screen
![](https://i0.wp.com/blog.tawfiq.me/wp-content/uploads/2019/11/How-to-Change-Your-Media-Item-permalinkURL-Step-by-Step-3.png?fit=1024%2C64)
Step 4: Check “Slug” under Boxes
![](https://i0.wp.com/blog.tawfiq.me/wp-content/uploads/2019/11/How-to-Change-Your-Media-Item-permalinkURL-Step-by-Step-4.png?fit=1024%2C157)
Step 5: Scroll down to the Slug box and Type in what you want to call the link.
![](https://blog-tawfiq:8890/wp-content/uploads/2019/11/How-to-Change-Your-Media-Item-permalinkURL-Step-by-Step-5.png)
Step 6: Update the media file.
![](https://blog-tawfiq:8890/wp-content/uploads/2019/11/How-to-Change-Your-Media-Item-permalinkURL-Step-by-Step-6.png)
Step 7: Go to the WordPress Page you want to change the permalink and click Edit button in front of Permalink
![](https://blog-tawfiq:8890/wp-content/uploads/2019/11/How-to-Change-Your-Media-Item-permalinkURL-Step-by-Step-7.png)
Step 8: Type in what you want to call the Page and Click Ok
![](https://blog-tawfiq:8890/wp-content/uploads/2019/11/How-to-Change-Your-Media-Item-permalinkURL-Step-by-Step-8.png)
You are Done š
Thanks! Worked like a charm