TUTORIAL: change theme and content folder names

Posted in: Newspaper
Post count: 9544

Hi
for those who have been emailing me via Facebook about how to use WordPress — a great learning resource is free to all at WordPress.org, called the “codex” or “official docs” for learning WP.

To wit, the section on editing the wp-config.php file explains simply how to change the name/location of your theme folder, change name of your plugins/themes folder (wp-content), and put explicit paths to your website URL which helps when moving from http to https.

See:
https://codex.wordpress.org/Editing_wp-config.php#Moving_wp-content_folder

so, this allows you to – for example:

change

/wp-content/themes/Newspaper

to

/wp-content/themes/mysitename

(need to actually change folder; and name in style.css too!)

*and*

you can go step further, and do change to wp-content to be something like

/assets/themes/mysitename

Obviously you need to clear caching, and update any CDN shenanigans, if any.

Pretty simple really. Just need to “read the friendly manual” (RTFM). 🙂

Viewing 1 post (of 1 total)
You must be logged in to reply to this topic.