How to Change a WordPress Theme

Learn How to Change a WordPress Theme in The Database and Dashboard

In this guide, we’ll show you how to change a WordPress theme in the Database and directly in the Dashboard. Changing your WordPress theme is useful if you’ve outgrown your current theme or need a theme that supports eCommerce or online classes. 

If you don’t have access to the dashboard, the theme can be changed directly in the database. This can be especially helpful when troubleshooting WordPress issues if you don’t have Dashboard access.

Keep mind that you can easily change your theme without losing your website content. So don’t be afraid to try new themes for your WordPress website. 

For advanced users, we also have a guide on How to Change a WordPress Theme Using WP-CLI.

If you need a new home for your WordPress site, look no further than InMotion’s WordPress Hosting solutions for secure, optimized, budget-friendly servers.

check markFast & Easy Transfers check markFree SSLs check markHack Protection check markAffordable

View WordPress Hosting Plans

Change a WordPress Theme in the Dashboard

Changing your WordPress theme is a simple process done through your WordPress dashboard. To change your theme:

  1. Login to your WordPress Dashboard.
  2. Click Appearance then Themes in the Dashboard menu.
    How to change a WordPress Theme Appearance
  3. You’ll then see all of your installed themes, but you can add more by clicking Add New. We also have a full guide on How to Install a WordPress Theme.
  4. Hover your mouse over a theme to see the “Live Preview” and “Activate” options. Click the Activate button to enable the theme. Remember, this will not delete the content currently on your website though you may need to make tweaks to fit the new theme.
    How to Change a WordPress Theme - Activate
  5. Check your website on desktop, laptop, and mobile devices for any small changes needed. Though rare, you also may need to disable certain plugins or widgets that may not be supported by the new theme.

How to Change a WordPress Theme in the Database

Sometimes new changes such as plugins or updates are simply not compatible with your current theme. Often, with this incompatibility, you are unable to enter the admin area to switch the theme. This can leave you in a circular problem as you need to change the theme in order to get into the admin area. In this scenario you will need to change it directly in the database. The steps below will guide you on how to do that within your WordPress site.

  1. Login to your cPanel interface.
  2. Look for the Databases category and click on the phpMyadmin icon.
    cPanel phpMyAdmin
  3. Once inside the phpMyadmin look to the left-hand sidebar and click on your specific WordPress database. You can identify your database name in the wp-config.php file.
  4. From there, select the wp_options table.
  5. Once the table is opened, look to the tab menu on the screen and click on the Browse option. This allows you to browse the columns broken down into pages. Click on the Show All option at the top so it will list all the columns on one page.
    View all Database Tables
  6. A pop-up will confirm if you want to view all of the rows. Click the OK button.
    Confirm All Tables Access
  7. You will need to locate two rows on the page, the template and the stylesheet. Pick template and click on the Edit link.
    Edit Template in the Database
  8. This will take you to the edit page where we will change the data for the option_value. In our example, the value is set for the twentytwenty template. Change this to another theme name, such as twentytwentyone and click on the Go button at the bottom of the page.
    You can view a list of your available themes in the “/wp-content/themes” folder using File Manager.
    Template Updated in Database
  9. Perform the same procedure on the stylesheet row. When you finish the stylesheet and return to the list, you should see the new theme in the value portion of the list for both. You can now visit your website and see that it is using the new theme. From here you should also be able to login to your WordPress Dashboard.

Now you know how to change a WordPress theme in the Database and Dashboard. Check out our WordPress Education Channel for more guides on creating a successful site.

Learn more about the power of WordPress Themes and how they can simplify your website building and maintenance.

JB
John-Paul Briones Content Writer II

John-Paul is an Electronics Engineer that spent most of his career in IT. He has been a Technical Writer for InMotion since 2013.

More Articles by John-Paul

49 thoughts on “How to Change a WordPress Theme

  1. Hello…

    I have to thank you…yesterday I got an error, website not working on chrome, on firefox I got a blank white page…with a little search on google, the problem is supposed to be in the header as suggested, but I couldn’t log in to admin area, so I changed the theme to WordPress default theme…once I did it the problem resolved…you saved my day…thank you so much…

  2. Hey i created my website on wordpress and by mistakly i deleted all data from public.html folder and then i uninstalled previous wordpress account and created another one from cpanel now i am not able to change my theam and i tried these steps and still my website is not showing any theame.

    1. I am new here and the page of phpMyadmin is empty and I wanna select a proper theme to match y insurance business Any help?
      Thx
      Sam

  3. I tried posting a second ago but i guess it didn’t post.. 

    Ive done what you suggested but it has not changed my issue of not accessing my admin page or website being down.

     

    my site is www austeremag com

    my website is experiencing this error:

    Fatal error: Cannot redeclare df_magz_custom_header_setup() (previously declared in /customers/1/1/4/austeremag.com/httpd.www/wp-content/themes/onfleek/inc/custom-header.php:24) in /customers/1/1/4/austeremag.com/httpd.www/wp-content/themes/onfleek/inc/custom-header.php on line 32

     

    please any help is massively appreciated!!

    1. Hello Natasha,

      Sorry for the problem with the theme. You will need to disable the theme that’s being used. You can do that via the database. Once you have the theme cleared, then you should be able to access your site normally again. In order to fix the issue, you will need to contact the theme developer.

      If you have any further questions or comments, please let us know.

      Regards,
      Arnel C.

  4. Hmmm.  Template and stylesheet not showing up in wp_options list so there is nowhere to change the default theme. Now what to do? My error message says directory not found. The only way I can acces my WP admin panel is to designate Themes_old in cpanel and then no themes are present in the WP admin panel. When I do that I go from a completely white screen to a white screen with the error message, so I’m assuming it does indeed have to do with theme access. But Template and stylesheet don’t show up in wp-options regardless of whether I use Themes or Themes_old. 

    1. Be sure you are looking through the entire wo_options table. The columns are paginated, so in my database I found them on the second page of columns.

    1. The above guide should help you accomplish that. Are you having trouble with a specific step?

      Thank you,
      John-Paul

  5. Thank you so much . Really nice trick. i wested one week to solve this problem. after ref your post imediately i solve this error.

  6. Excellent solution and step by step instruction. I was lucky i landed in this post. Saved me a lot of time and rectified the issue instantly. Thanks and appreciate.

  7. Excellent advice, got me out of a hole when a subscription to a paid theme expired and it stopped working.

    Followed your instructions and it worked a dream.

  8. how to know the name of theme and plugin is used in wordpress website. If any way to know this please tell me.

    1. The article above goes over how to find the name of the theme in the database. To find your plugins, look in the wp-content/plugins folder.

  9. This worked for me. Although, once you’re in the theme I had to go to the /wp-admin (dashboard) and activate a different theme, and re-activate the theme that I wanted after. There were some lingering issues that it was reading the old theme if I didn’t do it this way.

  10. Hello thank you but this is my own problem. i have been trying to solve it. oplease help


    Warning: require(/home/softimpa/public_html/wp-includes/functions.php)function.require>]: failed to open stream: No such file or directory in/home/softimpa/public_html/wp-settings.php on line 72

    Fatal error: require() function.require]: Failed opening required ‘/home/softimpa/public_html/wp-includes/functions.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/softimpa/public_html/wp-settings.php on line 72

    1. Hello Aity,

      The error message “No such file or directory” means that either a path is incorrect or the file is missing. Did you move the installation over from another location? Did you do an update?

      Kindest Regards,
      Scott M

  11. I was trying to change from the Ultimatum theme to any of the themes that come with Word press. I tried twenty thirteen, blank canvas, etc. I have tried to change them through the c-panel just as the instructions above have stated and also tried directly through wordpress itself. What I’m not sure of is do I have to put the integration link into the pages or should things roll over because they are in the c-panel. Again, we don’t control the c-panel, but we do have access to it.

    1. Hello Tracy,

      Thank you for contacting us. All of the options you described should work for changing your WordPress theme.

      Your WordPress theme should change immediately, unless you are using some type of caching.

      You may also have to clear your browser cache to update your view.

      Thank you,
      John-Paul

  12. Thank you TJ, however, I did follow all of the previous comment/suggestions before I contacted your site. Like in my previous comment, I have gone into the Cpanel as well as just wordpress and tried to make changes. As easy as it is for anyone else to do it, it just seems so compicated when I try to. Either I have to take the new theme and “tweek” it to my liking or it doesn’t work at all. All of the main themes are downloaded into the cpanel and when I have followed the instructions previously the new theme doesn’t act correctly. I was under the impression that if all of the files are in the cpanel and the themes are there, I should be able to just change the theme and bam! New theme. What else could I be doing wrong?

    Thank you so much in advance. 

    1. Hello Tracy,

      Unfortunately, you’re not giving us any specifics about what you’re doing. How are you making changes to a theme? Are you changing them in the editor? Are you making changes with the WordPress interface? What theme are you referring to? Many custom themes have different interfaces that may affect how they are modified. Please give us some further info in order for us to help you .

      Regards,
      Arnel C.

  13. Hello, I have read just about everything there is to read about changing a theme in wordpress. My problem is that our wordpress is connected to a cpanel (not so tough, right) so that I should be able to follow all the steps above and change it to a new theme. It works as far as going to the new theme, however, my question is, do I have to fine tune the new theme? Our Cpanel is run through a company, however, I have access to it, and have been playing around with it. I see that I can change the theme either on the Cpanel or through wordpress. What I don’t see is all the changes happen.

    1. Hello Tracy,

      When you make any changes to the theme and you are not seeing changes then your browser may be cached. Please be sure to clear your browsers cache and wordpress cache (if you have a caching plugin enabled).

      Best Regards,
      TJ Edens

  14. I followed the steps and it works, however my second problem now is all of the assets are 404, couldn’t read the css, js and images. PLease help.

    I’m using wordpress from GoDaddy.

    1. Hello Ricky,

      Thank you for contacting us about 404 errors after changing your theme. We are happy to help, but will need some additional information. Did you try the Common WordPress Troubleshooting Techniques?

      Have you tried changing the permalinks? For example, changing to a different option, then changing back.

      What theme were you installing? What theme did you have before?

      Can you provide a link to the site, so we can view the error?

      Thank you,
      John-Paul

  15. I never comment because I am a weird sort of person. But you are a life safer. Thank you very much sir. You saved my work.

    I installed a theme which was corrupt and I didnt even have the backup.

    You rock. thanks again.

  16. Don’t forget to mention that you will need to use the theme’s ‘text_domain’ as the name, because the actual name won’t work.

  17. Thanks a lot.  Helped me out of a jam and got me going again.

    There may be serveral references in the article to “column” when I think what was meant was “row” ?

    1. Hello Tray,

      Thank you for your comment. I removed/changed some of the incorrect instances of “column” in the article.

      If you have any more suggestions, let us know.

      Thank you,
      John-Paul

Was this article helpful? Join the conversation!