Yes, you can change the directory name of your active theme/child theme. The steps you need to do for Parent Theme:
- Change theme folder name.
-
Go to phpMyAdmin, find your wordpress installation database, find the table {your-db-prefix}_options
(by default it's wp_options
) and find the template
from column option_name
. Change it's option_value
to your theme directory new name. That row will look something like:
option_id | option_name | option_value
---------------------------------------------------------
{some_id} | template | twentyseventeen
If you're going to change the folder name of Child Theme, then instead of template
you should find the record stylesheet
and make same steps as for Parent theme.
This will prevent deleting Theme options from database.