How do you change the theme location?

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.

2 s
2

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.

Leave a Comment