Set up a default template in WordPress

Last Revised: October 2, 2021

Although it is not normally something that usually happens, it is possible that your template fails for some reason (for some incompatibility, because some files are deleted …) or simply that you have a WordPress MultiSite and you want to indicate which of your templates is the one that will be configured with the new sites, you have to add this line in the configuration file [wp-config.php]:

define('WP_DEFAULT_THEME', 'twentytwenty');

In general I recommend that you always have one of the WordPress templates as security, for example, the TwentyTwenty.


Seguir con Seguridad para WordPress


About this document

This document is regulated by the EUPL v1.2 license, published in WP SysAdmin and created by Javier Casares. Please, if you use this content in your website, your presentation or any material you distribute, remember to mention this site or its author, and having to put the material you create under EUPL license.