To change the upload directory I have to do this:
define ( "upload", "<new upload location>" );
How can you change the themes location? I like to create a folder themes in the root directory.
To change the upload directory I have to do this:
define ( "upload", "<new upload location>" );
How can you change the themes location? I like to create a folder themes in the root directory.
You must be logged in to post a comment.
You can register additional directory or directories with themes by using
register_theme_directory()
function, that accepts filesystem path to folder.Note that this isn’t typical and even while core handles it mostly fine, third party code in themes and plugins might not.
You have to change the path and the URL to make sure themes work. I am using the following MU-Plugin in one of my local setups:
Be aware automatic theme upgrades will not work now due to a bug in the upgrader. I have fixed that and submitted a patch, but until 3.6 comes out you have to run upgrades separately.