Skip to content

Instantly share code, notes, and snippets.

@dasegn
Created February 3, 2016 23:27
Show Gist options
  • Save dasegn/e02dea1ee5c57b1c6b1b to your computer and use it in GitHub Desktop.
Save dasegn/e02dea1ee5c57b1c6b1b to your computer and use it in GitHub Desktop.
Disable a Drupal 7 theme in MySQL DB
# Update theme variables
UPDATE variable SET value='s:7:"garland"' WHERE name = 'theme_default';
UPDATE system SET status=1 WHERE name = 'garland';
UPDATE system SET status=0 WHERE name = 'other_theme';
# Truncate cache tables
TRUNCATE cache;
TRUNCATE cache_bootstrap;
TRUNCATE cache_block;
# In settings.php
# $conf['theme_default'] = 'garland';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment