Skip to Content

How To Get a Drupal Theme Change to Show Up

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.

Tagged in:
ALL COMMENTS ARE MODERATED AND SPAM WILL BE DELETED SO SAVE YOUR TIME AND MINE AND ONLY LEAVE A COMMENT IF YOU ARE REALLY LEAVING A COMMENT AND NOT TRYING TO LINK OFF TO ANOTHER SITE FOR SOME GOOGLE LOVE.

Comments

Short & Sweet

Simple & to the point!

Thanx!

^_^

Post new comment - ALL COMMENTS ARE MODERATED - SPAM WILL BE DELETED!

The content of this field is kept private and will not be shown publicly.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Powered by Drupal, an open source content management system