Changing the WordPress Theme Manually
Normally, you can change your WordPress theme easily from the Appearance → Themes section in the dashboard. However, if the dashboard becomes inaccessible (for example, due to a broken theme), you can change the theme manually. On ruachost.com, there are two main methods: via File Manager or via phpMyAdmin.
Why Change a Theme Manually?
Section titled “Why Change a Theme Manually?”- Recover access when the dashboard is broken.
- Replace a corrupted theme with a working one.
- Switch themes during troubleshooting.
Method 1: Rename and Copy Theme Folders
Section titled “Method 1: Rename and Copy Theme Folders”-
Log in to cPanel from your ruachost.com hosting account.
-
Go to Files → File Manager.
-
Navigate to the folder where WordPress is installed (usually
public_html). -
Open the wp-content/themes directory.
-
Right‑click the folder of the currently active theme → Rename.
- Example: rename
twentytwentytotwentytwenty.original.
- Example: rename
-
Right‑click the folder of the new theme you want to use → Copy.
-
Name the copied folder with the original theme’s name (e.g.,
twentytwenty). -
Save changes → The new theme takes effect immediately.
Method 2: Modify the WordPress Database
Section titled “Method 2: Modify the WordPress Database”- Log in to cPanel → Go to Databases → phpMyAdmin.
- Select your WordPress database (usually
username_wpXXX). - Open the wp_options table.
- Locate the rows with
option_name=templateandstylesheet. - Click Edit for each row.
- Replace the current theme name with the new theme’s folder name.
- Click Go to save changes.
- WordPress will now load with the new theme.
Important Notes
Section titled “Important Notes”- Ensure the new theme is already installed in
wp-content/themes. - Always back up your site before making manual changes.
- If the new theme is missing or misnamed, WordPress may revert to a default theme.