Is there a way to reinstall a theme? I've made changes to a theme since using it, is there some way to reinstall it? It's only picking up old template.php. How do I get the site to read it again? I've tried rebuilding the theme registry and clearing the cache. Not sure what else to try.

Thanks!

Comments

tonyn’s picture

Well,

Are you sure you're in the /themes/YOURTHEME folder?

I'm not fully sure with how this system work, however you can also try using the devel module, install, and use the "devel" block for some extra devel/theming features.

You can also try unchecking, saving, and checking the theme in the admin/build/themes page.

JohnAlbin, if you could come up with anything else

Flying Drupalist’s picture

Thanks for your help.

I'm in the sites/all/themes/yourtheme folder.

I eventually reinstalled the color module, and that cleared everything. I think there should be a feature to rebuild the theme. :)

arski’s picture

Yea, this is annoying.. what you can do to avoid re-installing the module/theme is remove the mentions of your theme from the "color" and "color_schemes" tables AND disable the "color service" for the theme on the theme settings page.

arski’s picture

OK I was hoping that would work but actually you should take a different path:

Execute variable_set('theme_color_THEMENAME', 0); somewhere, then go to your theme settings and "clean up" the previous configs - that will clean up the DB - then enable schemes again.

Puh :/