{"id":4191,"date":"2022-04-15T09:26:05","date_gmt":"2022-04-15T06:26:05","guid":{"rendered":"https:\/\/www.scalahosting.com\/kb\/?p=4191"},"modified":"2022-09-16T10:40:01","modified_gmt":"2022-09-16T07:40:01","slug":"how-to-change-a-wordpress-theme","status":"publish","type":"post","link":"https:\/\/www.scalahosting.com\/kb\/how-to-change-a-wordpress-theme\/","title":{"rendered":"How to Change a WordPress Theme"},"content":{"rendered":"\n<p><span style=\"font-weight: 400;\">Completely overhauling the look of a website can be an exciting prospect. It usually means you&#8217;re re-branding your online business and presenting visitors with a fresh new identity.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">However, if you rush the process, you risk making <\/span><b>mistakes that could prove quite costly<\/b><span style=\"font-weight: 400;\">. Let&#8217;s see how to avoid them.<\/span><b><\/b><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><b>How to Install a New WordPress Theme<\/b><b><\/b><\/h2>\n\n\n\n<p><span style=\"font-weight: 400;\">We&#8217;ll start with the basics and discuss what you need to do to <\/span><b>change your <\/b><a href=\"https:\/\/www.scalahosting.com\/blog\/what-is-wordpress-how-does-it-work\/\"><b>WordPress<\/b><\/a><b> site&#8217;s theme<\/b><span style=\"font-weight: 400;\">. The steps below are pretty straightforward.<\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><b>1. Log into your WordPress dashboard.<\/b><\/h3>\n\n\n\n<p><span style=\"font-weight: 400;\">The default login URL for the <\/span><a href=\"https:\/\/www.scalahosting.com\/blog\/navigating-your-wordpress-dashboard\/\"><b>WP dashboard<\/b><\/a><span style=\"font-weight: 400;\"> can be reached by adding \/<\/span><i><span style=\"font-weight: 400;\">wp-admin to your domain name (e.g., <\/span><\/i><b><i>domain.com\/wp-admin<\/i><\/b><span style=\"font-weight: 400;\">).<\/span><\/p>\n\n\n<div class=\"wp-block-image mpg-gallery\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"975\" height=\"736\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/04\/Screenshot-2022-03-21-141704-1.png\" alt=\"How to Change a WordPress Theme, 1. Log into your WordPress dashboard.\" class=\"wp-image-4200\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/04\/Screenshot-2022-03-21-141704-1.png 975w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/04\/Screenshot-2022-03-21-141704-1-300x226.png 300w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/04\/Screenshot-2022-03-21-141704-1-768x580.png 768w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/figure>\n<\/div>\n\n\n<h3 class=\"wp-block-heading\"><b>2. Go to Appearance &gt; Themes and click Add New<\/b><\/h3>\n\n\n\n<p><span style=\"font-weight: 400;\">The <\/span><b>Appearance <\/b><span style=\"font-weight: 400;\">&gt; <\/span><b>Themes <\/b><span style=\"font-weight: 400;\">page shows you a list of all the themes currently installed on your website. Click the <\/span><b>Add New <\/b><span style=\"font-weight: 400;\">button to set up a new one.<\/span><\/p>\n\n\n<div class=\"wp-block-image mpg-gallery\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"660\" height=\"63\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/09\/Manage-Themes-Your-Blog-Title-WordPress1.png\" alt=\"How to Change a WordPress Theme, 2. Go to Appearance &gt; Themes and click Add New\" class=\"wp-image-5103\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/09\/Manage-Themes-Your-Blog-Title-WordPress1.png 660w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/09\/Manage-Themes-Your-Blog-Title-WordPress1-300x29.png 300w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/figure>\n<\/div>\n\n\n<h3 class=\"wp-block-heading\"><b>3. Upload or find your theme<\/b><\/h3>\n\n\n\n<p><span style=\"font-weight: 400;\">The following steps depend on where you&#8217;re getting the theme from. If it&#8217;s available on the <\/span><a href=\"https:\/\/wordpress.org\/themes\/\"><b>official WordPress repository<\/b><\/a><span style=\"font-weight: 400;\">, you can use the search field to find the design. Then, it&#8217;s a matter of clicking the <\/span><b>Install <\/b><span style=\"font-weight: 400;\">button.<\/span><\/p>\n\n\n<div class=\"wp-block-image mpg-gallery\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"1024\" height=\"382\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/04\/install-theme-1024x382.png\" alt=\"How to Change a WordPress Theme, 3. Upload or find your theme\" class=\"wp-image-4202\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/04\/install-theme-1024x382.png 1024w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/04\/install-theme-300x112.png 300w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/04\/install-theme-768x287.png 768w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/04\/install-theme-1536x573.png 1536w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/04\/install-theme.png 1760w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/figure>\n<\/div>\n\n\n<p><span style=\"font-weight: 400;\">If your theme is not available on the official repository, you most likely have it as a ZIP file. If that&#8217;s the case, you need to click <\/span><b>Upload Theme<\/b><span style=\"font-weight: 400;\">.<\/span><\/p>\n\n\n<div class=\"wp-block-image mpg-gallery\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"1024\" height=\"200\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/04\/install-theme2-1024x200.png\" alt=\"How to Change a WordPress Theme, 3. Upload or find your theme 2\" class=\"wp-image-4203\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/04\/install-theme2-1024x200.png 1024w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/04\/install-theme2-300x58.png 300w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/04\/install-theme2-768x150.png 768w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/04\/install-theme2-1536x300.png 1536w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/04\/install-theme2.png 1759w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/figure>\n<\/div>\n\n\n<p><span style=\"font-weight: 400;\">Use the <\/span><b>Browse <\/b><span style=\"font-weight: 400;\">button to choose the theme&#8217;s archive from your local computer, and then click <\/span><b>Install Now<\/b><span style=\"font-weight: 400;\"> to set it up.<\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><b>4. Activate the Theme<\/b><\/h3>\n\n\n\n<p><span style=\"font-weight: 400;\">If everything goes according to plan, the new theme will appear on the <\/span><b>Appearance <\/b><span style=\"font-weight: 400;\">&gt; <\/span><b>Themes<\/b><span style=\"font-weight: 400;\"> page. Go there and click <\/span><b>Activate<\/b><span style=\"font-weight: 400;\"> to apply the design to your website.<\/span><\/p>\n\n\n<div class=\"wp-block-image mpg-gallery\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"420\" height=\"367\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/04\/install-theme3.png\" alt=\"How to Change a WordPress Theme, 4. Activate the Theme\" class=\"wp-image-4204\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/04\/install-theme3.png 420w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/04\/install-theme3-300x262.png 300w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/figure>\n<\/div>\n\n\n<p><span style=\"font-weight: 400;\">On the face of it, <\/span><b>swapping one WordPress design for another doesn&#8217;t appear to be particularly scary or complicated<\/b><span style=\"font-weight: 400;\">. However, things don&#8217;t always go according to plan, and the actual task has quite a few pitfalls you need to avoid before, during, and after installing the new theme.<\/span><b><\/b><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><b>What Should You Think About Before Changing a WordPress Theme?<\/b><b><\/b><\/h2>\n\n\n\n<p><span style=\"font-weight: 400;\">You may have chosen the new design for your website, and you already know how to set it up. However, a genuinely painless and smooth transition to the new theme <\/span><b>requires some preparation<\/b><span style=\"font-weight: 400;\">.<\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><b>Backup your website<\/b><\/h3>\n\n\n\n<p><span style=\"font-weight: 400;\">Creating a working backup before any major operation is absolutely essential. Changing a theme may look straightforward, but even the smallest hitch can result in anything from a broken design to downtime. <\/span><b>You must be ready for the worst-case scenario<\/b><span style=\"font-weight: 400;\">, and a backup should be at the heart of your crisis mitigation plan.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">Nowadays, you get <\/span><a href=\"https:\/\/www.scalahosting.com\/kb\/restore-data-backups\/\"><b>automatic backups<\/b><\/a><span style=\"font-weight: 400;\"> with pretty much any hosting service. However, it&#8217;s a better idea to <\/span><b>create a secure copy of your website on your own<\/b><span style=\"font-weight: 400;\"> before you change the theme. Your web hosting control panel probably has a tool for<\/span><i><span style=\"font-weight: 400;\"> backing up individual files, folders, databases, or the entire account.<\/span><\/i><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">Alternatively, you can use a <\/span><a href=\"https:\/\/www.scalahosting.com\/blog\/what-is-a-wordpress-plugin\/\"><b>WordPress plugin<\/b><\/a><span style=\"font-weight: 400;\"> to create the backup. Generally speaking, it&#8217;s <\/span><b>the less reliable method<\/b><span style=\"font-weight: 400;\">, but it&#8217;s certainly better than nothing.<\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><b>Use a staging environment<\/b><\/h3>\n\n\n\n<p><span style=\"font-weight: 400;\">Even if you have a backup, you will be much better off if you have <\/span><b>a development (or staging) environment<\/b><span style=\"font-weight: 400;\"> where you can install the new theme and make sure it works well before pushing it to production.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">A staging environment takes up storage space, so this is something you should probably bear in mind when choosing a hosting account. Another thing to consider is the availability of <\/span><b>tools to help you set up a testbed<\/b><span style=\"font-weight: 400;\">.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">Some WordPress plugins promise to clone your website and create a testing platform, but they often come with quite a few compromises. Ideally, you&#8217;ll want to use a cloning functionality embedded into <\/span><b>your account&#8217;s control panel<\/b><span style=\"font-weight: 400;\">.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">For example, <\/span><a href=\"https:\/\/www.scalahosting.com\/spanel.html\"><span style=\"font-weight: 400;\">ScalaHosting&#8217;s SPanel<\/span><\/a><span style=\"font-weight: 400;\"> gives you access to <\/span><b>SWordPress<\/b><span style=\"font-weight: 400;\"> \u2013 a proprietary tool for managing WordPress installations. With it, you get complete control over all <\/span><a href=\"https:\/\/www.scalahosting.com\/blog\/how-to-install-wordpress\/\"><b>WordPress installations<\/b><\/a><span style=\"font-weight: 400;\"> on your account, and you can also <\/span><b>clone them with a few clicks<\/b><span style=\"font-weight: 400;\">, creating the perfect staging environment for your new theme.<\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><b>Copy customization and tracking codes from your theme&#8217;s files<\/b><\/h3>\n\n\n\n<p><span style=\"font-weight: 400;\">The new theme will use completely new files, so try to remember what sort of changes you&#8217;ve made to your old design. If the modifications are theme-specific, you don&#8217;t need to transfer them. However, if you want to keep some of the elements, you need to <\/span><b>save the custom code<\/b><span style=\"font-weight: 400;\"> and incorporate it into the new design.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">Third-party services like <\/span><b>Google Analytics<\/b><span style=\"font-weight: 400;\"> also require code snippets embedded into your theme&#8217;s files. If you fail to transfer them after the change, you might lose some vital statistics regarding your site&#8217;s performance.<\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><b>Put your website in maintenance mode<\/b><\/h3>\n\n\n\n<p><span style=\"font-weight: 400;\">If everything goes according to plan, your WordPress theme change will be over in<\/span><b> minutes<\/b><span style=\"font-weight: 400;\">. Still, to avoid confusing users, you&#8217;re better off putting a temporary notice, telling them that you&#8217;re doing some work on the website.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">You can do it yourself manually if you have the coding skills. However, most people would prefer using <\/span><b>a plugin<\/b><span style=\"font-weight: 400;\">. Some add-ons come with, among other things, <\/span><b>advanced page builders<\/b><span style=\"font-weight: 400;\"> that will help you set up a beautiful Under Construction notice for your homepage.<\/span><b><\/b><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><b>How to Preview the New Theme on a Live Website<\/b><b><\/b><\/h2>\n\n\n\n<p><span style=\"font-weight: 400;\">Even if you have a staging site for testing purposes, you&#8217;ll still want to take one final look at the new theme to see how it works. That&#8217;s why you have a <\/span><b>Live Preview <\/b><span style=\"font-weight: 400;\">option.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">Go to <\/span><b>Appearance <\/b><span style=\"font-weight: 400;\">&gt; <\/span><b>Themes<\/b><span style=\"font-weight: 400;\">, hover with your mouse over the theme that you have installed, and click the <\/span><b>Live Preview <\/b><span style=\"font-weight: 400;\">button.<\/span><\/p>\n\n\n<div class=\"wp-block-image mpg-gallery\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"411\" height=\"363\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/04\/install-theme4.png\" alt=\"How to Change a WordPress Theme, How to Preview the New Theme on a Live Website\" class=\"wp-image-4192\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/04\/install-theme4.png 411w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/04\/install-theme4-300x265.png 300w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/figure>\n<\/div>\n\n\n<p><span style=\"font-weight: 400;\">Make sure you <\/span><b>do this on all popular browsers<\/b><span style=\"font-weight: 400;\">. Developers of high-quality premium themes usually put their products through rigorous testing before publishing them, but you still can&#8217;t be sure how different browsers will render all your design elements.<\/span><b><\/b><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><b>How to Change a WordPress Theme Through the Database<\/b><b><\/b><\/h2>\n\n\n\n<p><span style=\"font-weight: 400;\">A WordPress theme change can go wrong, and if it does, the consequences could be pretty serious. For example, it&#8217;s not unheard of to get <\/span><b>a White Screen of Death<\/b><span style=\"font-weight: 400;\"> because your new theme isn&#8217;t compatible with another component on your website.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">If this happens, you could be in real trouble because the problem sometimes <\/span><b>extends to the WordPress dashboard<\/b><span style=\"font-weight: 400;\">. In other words, you can&#8217;t just switch back to the previous theme. In such cases, you might need to <\/span><b>undo the changes through your website&#8217;s database<\/b><span style=\"font-weight: 400;\">.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">To do that, log into your web hosting control panel and open <\/span><b>phpMyAdmin<\/b><span style=\"font-weight: 400;\">.<\/span><\/p>\n\n\n<div class=\"wp-block-image mpg-gallery\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"867\" height=\"175\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/04\/install-theme5.png\" alt=\"How to Change a WordPress Theme, How to Change a WordPress Theme Through the Database\" class=\"wp-image-4193\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/04\/install-theme5.png 867w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/04\/install-theme5-300x61.png 300w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/04\/install-theme5-768x155.png 768w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/figure>\n<\/div>\n\n\n<p><span style=\"font-weight: 400;\">Select your site&#8217;s database from the navigation bar on the left. And go to the <\/span><b>wp_options<\/b><span style=\"font-weight: 400;\"> table.<\/span><\/p>\n\n\n<div class=\"wp-block-image mpg-gallery\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"241\" height=\"505\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/04\/install-theme6.png\" alt=\"How to Change a WordPress Theme, How to Change a WordPress Theme Through the Database 2\" class=\"wp-image-4194\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/04\/install-theme6.png 241w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/04\/install-theme6-143x300.png 143w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/figure>\n<\/div>\n\n\n<p><span style=\"font-weight: 400;\">Scroll down to the <\/span><b>template <\/b><span style=\"font-weight: 400;\">and <\/span><b>stylesheet<\/b><span style=\"font-weight: 400;\"> rows. By default, phpMyAdmin only shows <\/span><b>25 rows per page<\/b><span style=\"font-weight: 400;\">, so you might need to go to the second page.<\/span><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"1024\" height=\"57\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/04\/install-theme7-1024x57.png\" alt=\"How to Change a WordPress Theme, How to Change a WordPress Theme Through the Database 3\" class=\"wp-image-4195\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/04\/install-theme7-1024x57.png 1024w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/04\/install-theme7-300x17.png 300w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/04\/install-theme7-768x43.png 768w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/04\/install-theme7.png 1084w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/figure>\n<\/div>\n\n\n<p><b>Edit<\/b><span style=\"font-weight: 400;\"> the two rows, entering your theme&#8217;s slug in the <\/span><b>option_value <\/b><span style=\"font-weight: 400;\">fields.<\/span><\/p>\n\n\n<div class=\"wp-block-image mpg-gallery\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"1024\" height=\"570\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/04\/install-theme8-1024x570.png\" alt=\"How to Change a WordPress Theme, How to Change a WordPress Theme Through the Database 4\" class=\"wp-image-4196\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/04\/install-theme8-1024x570.png 1024w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/04\/install-theme8-300x167.png 300w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/04\/install-theme8-768x428.png 768w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/04\/install-theme8-1536x856.png 1536w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/04\/install-theme8.png 1655w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/figure>\n<\/div>\n\n\n<p><span style=\"font-weight: 400;\">You can find the slug of your theme by accessing your account via FTP and going to the <\/span><b>\/wp-content\/themes\/ <\/b><span style=\"font-weight: 400;\">directory inside your website&#8217;s document root. The slug for each theme is its folder name.<\/span><\/p>\n\n\n<div class=\"wp-block-image mpg-gallery\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"900\" height=\"487\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/04\/install-theme9.png\" alt=\"How to Change a WordPress Theme, How to Change a WordPress Theme Through the Database 5\" class=\"wp-image-4197\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/04\/install-theme9.png 900w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/04\/install-theme9-300x162.png 300w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/04\/install-theme9-768x416.png 768w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\"><b>How to Change a Theme via the Command Line<\/b><b><\/b><\/h2>\n\n\n\n<p><span style=\"font-weight: 400;\">Changing your WordPress theme is also possible via the command-line thanks to a tool called <\/span><b>WP-CLI<\/b><span style=\"font-weight: 400;\">. It&#8217;s another way to bring your website back to its working state if something has gone wrong during the theme change.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">You first need to <\/span><a href=\"https:\/\/www.scalahosting.com\/kb\/ssh-access\/\"><span style=\"font-weight: 400;\">log into your hosting account via SSH<\/span><\/a><span style=\"font-weight: 400;\"> and navigate to <\/span><b>your site&#8217;s document root folder<\/b><span style=\"font-weight: 400;\">.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">Enter the following command to bring up a list of all installed WordPress themes:<\/span><\/p>\n\n\n\n<p class=\"alert-orange\"><b><i>$ wp theme list<\/i><\/b><\/p>\n\n\n<div class=\"wp-block-image mpg-gallery\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"979\" height=\"512\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/04\/install-theme10.png\" alt=\"How to Change a WordPress Theme, How to Change a Theme via the Command Line\" class=\"wp-image-4198\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/04\/install-theme10.png 979w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/04\/install-theme10-300x157.png 300w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/04\/install-theme10-768x402.png 768w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/figure>\n<\/div>\n\n\n<p><span style=\"font-weight: 400;\">The table shows you each theme&#8217;s <\/span><b>name, version, and status<\/b><span style=\"font-weight: 400;\">. Make a note of the name of the theme you&#8217;d like to activate and enter the following command:<\/span><\/p>\n\n\n\n<p class=\"alert-orange\"><b><i>$ wp theme activate [the name of the theme]<\/i><\/b><\/p>\n\n\n<div class=\"wp-block-image mpg-gallery\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"979\" height=\"512\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/04\/install-theme11.png\" alt=\"How to Change a WordPress Theme, How to Change a Theme via the Command Line 2\" class=\"wp-image-4199\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/04\/install-theme11.png 979w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/04\/install-theme11-300x157.png 300w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/04\/install-theme11-768x402.png 768w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/figure>\n<\/div>\n\n\n<p><span style=\"font-weight: 400;\">WP-CLI will <\/span><b>switch the themes automatically<\/b><span style=\"font-weight: 400;\">.<\/span><b><\/b><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><b>What Should You Do After You Change Your WordPress Theme?<\/b><b><\/b><\/h2>\n\n\n\n<p><span style=\"font-weight: 400;\">Your job may not be over quite yet.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">You obviously need to <\/span><b>disable maintenance mode<\/b><span style=\"font-weight: 400;\"> and bring the site, along with all its functionality, live. If you&#8217;ve set up your Under Maintenance page via a plugin, you might want to uninstall it. It won&#8217;t necessarily get in the way, but decluttering your site as much as possible is always a good idea.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">Don&#8217;t forget to <\/span><b>implement your customizations and tracking codes<\/b><span style=\"font-weight: 400;\"> into the new theme. Tools like Google Analytics are <\/span><b>particularly useful during these times<\/b><span style=\"font-weight: 400;\">, as they give you an idea of how users are reacting to the site&#8217;s new look.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">Last but not least, use <\/span><b>a speed test<\/b><span style=\"font-weight: 400;\"> to figure out whether the new theme has any significant effect on the site performance. You don&#8217;t want a website that looks great but takes ages to load, and sometimes, a bit of optimization can go a long way.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Completely overhauling the look of a website can be an exciting prospect. It usually means you&#8217;re re-branding your online business and presenting visitors with a fresh new identity. However, if you rush the process, you risk making mistakes that could prove quite costly. Let&#8217;s see how to avoid them. How to Install a New WordPress [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_seopress_robots_primary_cat":"none","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","footnotes":""},"categories":[34],"tags":[],"class_list":["post-4191","post","type-post","status-publish","format-standard","hentry","category-web-hosting"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts\/4191","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/comments?post=4191"}],"version-history":[{"count":7,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts\/4191\/revisions"}],"predecessor-version":[{"id":5104,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts\/4191\/revisions\/5104"}],"wp:attachment":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/media?parent=4191"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/categories?post=4191"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/tags?post=4191"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}