1

In Drupal 7, I would disable a theme within the admin section and i would physically rename the theme directory (from themeName to themeName_old), clear cache and restart the server, to my surprise, drupal 7 still picks up the theme (themeName_old).

The only only way i managed to get rid of a theme completely is by removing the the directory from the theme folder. Why is that?

0

Folder name does not matter. What matters is name of the info file. If you have themeName.info in folder, Drupal knows it's a folder for a theme named themeName.

  • Thx @molot but what is the purpose of disabling the theme in the drupal admin section? – winteck Aug 27 '14 at 7:57
  • @winteck to make users unable to select it, if you will allow them theme selection? Things like that. What's your problem? – Mołot Aug 27 '14 at 8:00
  • I thought that "disable a theme" meant that it was no longer accessible in the front end. But i got it now, I did read about it in the docs, but it only makes sense now , i guess it is the "drupal way". so thx again... – winteck Aug 27 '14 at 8:09

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.