I tried to make a folder templates for all tpl files but after that now I can not load my theme anymore on Xamp?. Now when I try to load theme in drupal there was only white screen.What can I do?

I am tired of that so if you just make one mistake in Drupal, you are need to install again and again.

If I change a diffrent theme and in a case that I close my browser but theme is not working. How I can load different theme if I do not have access anymore to drupal?

  • You are avoiding the problem by adding another theme ? This is terrible (IMO) solution. You are going to change the UX because you have a bug and do not know how to fixed it. That is really bad. I think the best solution is to look what is going wrong within your templates and fixed it. – itsdarrylnorris Dec 17 '15 at 1:05
  • Drush command to change the theme in Drupal. Unusable Theme: How to Reset Your Theme. Another tip is to make regular backups of your db so you can restore if need be, especially during development. – J. Reynolds Dec 17 '15 at 5:22

You can update in database.

Change the active theme in the database

The default theme setting is stored in Drupal's database, and thus can be changed by manipulating the database from the command line or an administration overlay or client like PHPMyAdmin or MySQL Workbench for MySQL.

Always make a backup of your database before changing values in it directly, as it is possible to destroy data and render your site unrecoverable at the database level. You have been warned.

In Drupal 6 and 7, the setting is stored in the system table:

activate a trusted theme

UPDATE system SET status=1 WHERE name = 'garland';

change the default setting

UPDATE variable SET value='s:7:"garland"' WHERE name = 'theme_default';

clear the cache tables

TRUNCATE cache_bootstrap;
TRUNCATE cache_block;

Another way

$conf['theme_default'] = 'bartik';

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.