Change the theme of your portal with Drush

17/06/2016

The objective of this snippet is to teach you how to change the theme of your portal through Drush with vset.  This snippet is useful enough when you have to restore the theme from zero or change it to another, when you can’t do it with its own interface.


# Show current drupal default and admin theme.
drush status theme

# Change admin default theme to garland.
drush vset admin_theme garland
 
# Change site default theme to garland.
drush vset theme_default garland

 

Add new comment

Restricted HTML

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id>
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.