Skip to content
Home » News » WordPress Change Theme in Database – WP Theme Database

WordPress Change Theme in Database – WP Theme Database

Rate this post

WordPress Change Theme in Database

Hello Frinds WordPress download, WordPress Where are theme options stored, WordPress Change Theme in Database, How to change theme in phpMyAdmin, How to change theme name in WordPress, Article for changing the theme in wordpress via database godaddy, WordPress change password in database, How to set default theme in WordPress, WordPress theme.

How to Change WordPress Theme Manually

  • Log in cPanel >> DATABASES section >> click phpMyAdmin.
  • Click the wp_options table. By default, WordPress uses wp_ as the prefix for the table names
  • Locate template and stylesheet then click Edit.
  • In the option_value text box, replace the current theme with the new theme name that you want to use.
  • Click Go. phpMyAdmin saves the changes in the table.

Using the WordPress administration dashboard.

  • Login to the WordPress admin dashboard
  • Go to Appearance » Themes
  • Click on the Activate button of the desired theme

Change the WordPress theme through the database in phpMyAdmin

There is a good chance the control panel your web host provides for managing your website comes with phpMyAdmin preinstalled. This database administration tool is a beginner-friendly option for anyone who wants to view or modify database content.

If your host uses cPanel, you can find the link to open the phpMyAdmin tool in the Databases section, as shown below.

Using the WordPress administration dashboard.

To do that, go to Appearance » Themes from the left sidebar of the WordPress admin panel. Move the mouse cursor over the theme you want to use and then click on the Activate button to change the WordPress theme.

Plugin incompatibility

Different website administrators are likely to install a different set of plugins depending on their needs. This is completely fine most of the time.

However, there are some instances when a website malfunctions or becomes inaccessible because of a conflict between different plugins and/or themes. This is known as plugin incompatibility. There are many possible reasons for plugin incompatibility,

How to add a blog post in WordPress with Elementor

The installed plugins are not up-to-date – An outdated plugin might be making an API call or calling a function that no longer exists. This could throw errors, making the admin dashboard inaccessible.
The theme relies on other plugins to offer additional related functionality: The theme might throw errors if it can’t find all those plugins.

A third-party plugin can have code that conflicts with a particular theme: Installing the plugin on a website where that particular theme is active could create problems. It is always a good idea to check if there is any reported incompatibility between the installed plugins and the active theme on a website.
Server configuration mismatch

Another potential cause of errors when you activate/update a theme is the server configuration not matching the theme’s requirements.

These requirements can be related to the installed PHP version, memory limits, execution time limits, or file upload limits, among other things.

Usually, you will be able to find out and update these values yourself using your web host’s control panel. For instance, cPanel has a Select PHP Version menu option under the Software section where you can change the current PHP version, maximum execution time, memory limits, file upload limits, and installed extensions.

How to Change WordPress Theme Manually

In some cases, WordPress admin area would be inaccessible and you won’t be able to change the theme using the above first method. So you can use phpMyAdmin to modify the WordPress database directly and change the active theme. This method allows you to inform WordPress which theme to use.

  • To do this, Connect to your website file using an FTP client/File manager and go to the /wp-content/themes/ folder.
  • You’ll be able to see all the themes that are currently installed on your website. You can also install a WordPress theme via FTP if you don’t see it.
  • Now, log in to phpMyAdmin via cPanel and you will see a list of databases on the left side of the screen. Simply click on the database that you are using for your WordPress site.
  • Now click on the “wp_options” table and open it. By default, WordPress uses wp_ as the prefix for the table names. However, it’s possible to have a different database prefix, as shown in the above image.
  • Locate the template and stylesheet rows on the right panel.
  • Click Edit next to the template entry.

After making changes to both the rows, you can go to your website to see the new theme in action.

Congratulations! You have learned how to revert to the default theme in WordPress

Leave a Reply

Your email address will not be published. Required fields are marked *