I have been looking for a way to change my “wp-content” folder to another name or move it entirely and not getting any where, at least not without having to manually search through every file and directory within my WordPress site.
It then dawned on me that Notepad++ (my weapon of choice) has a search and replace function, i tried it and it worked perfectly in just a few seconds.
instructions for how i did it:
1) either have your entire site on your localhost (your pc) or have the site accessible on your network(i haven’t tried FTP Yet)
2) crack open notepad++ and press Ctrl+F the find window opens, there are 4 tabs and you want the 3rd labelled “Find in Files”
3) enter the info you want to change eg,
Find what: wp-content
Replace with: resources
Filter: *.* (this means all files be it .js, .php, .html)
Directory:YOUR FILE DIRECTORY (eg. C:\wamp\www\wordpress)
and also check “in all sub-folders” and “in hidden folders”
Normal search mode should be fine and then click “Replace in files.
This should take a few seconds even for a large site and then that’s it.
then rename your wp-content folder to your chosen name and you will be done.
i’ve tested a few plugin’s and themes, they have automatically worked without any further tampering, i have not tried to update after doing this yet so i cant say whether it will make a difference.
i hope this helps anyone trying to do this.
- The topic ‘How To rename or move wp-admin, wp-content, wp-includes etc.’ is closed to new replies.