Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Switching themes in Drupal without the web interface

I'm in the process of learning php and creating themes.

Unfortunately, while I was editing a theme that i was currently using in drupal, I made a mistake in the theme such that nothing shows up anymore, even if i were to hit drupal/index.php. I want to change my broken drupal theme to a working one but i'm unable to do so because I can't even view the administration section.

like image 209
burnt1ce Avatar asked Nov 29 '22 00:11

burnt1ce


2 Answers

The How To reset your theme via the database page on Drupal.org has instructions for changing your theme directly from the SQL prompt.

It's not immediately clear whether this will work in the most recent version of Drupal, so back up your database before attempting this.

like image 185
Lendrick Avatar answered Dec 05 '22 19:12

Lendrick


The easiest way to change your frontend theme is to set it in your sites/default/settings.php:

$conf['theme_default'] = 'minelli';
like image 42
Olav Avatar answered Dec 05 '22 19:12

Olav