How To Change Drupal Theme?

  • Sharebar

If you are going to customize a drupal theme or create a drupal theme from scratch, you will inevitably find times where the change you have implemented does not show up. This is because the theme information is cached for better performance. This will happen *even* if you have caching turned off on your site.

So, I will explain how to get a drupal theme change to show up.

There are several ways to get the change to show up:

  • Option 1: Go to your /admin/build/themes page and click “save configuration”. This will force the Drupal theme registry to get updated. If this does not work (it should), you can switch to another theme, click “save configuration”, and then switch back.
  • Option 2: Install the Devel module and turn on the “Development” block in /admin/build/block. Once the block is available, you can click on the “Theme registry” link (or go to /devel/theme/registry”) and the theme will be initialized.
  • Option 3 (recommended): Install the Administration menu module. For the latest version (6.x-1.2), they have a handy link for clearing caches and updating the theme registry. Once the module is turned on, you will see a menu bar across the top of the site. In the left-most menu (with site logo on it), choose the “flush all caches” link.

So now you know how To get a drupal theme change to show up. Kind of annoying that you have to worry about this but at least it’s easy to handle.

You can leave a response, or trackback from your own site.