Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
tonyn CreditAttribution: tonyn commentedWell,
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
Comment #2
Flying Drupalist CreditAttribution: Flying Drupalist commentedThanks 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. :)
Comment #3
arski CreditAttribution: arski commentedYea, 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.
Comment #4
arski CreditAttribution: arski commentedOK 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 :/