Question

I have installed the 7.x-5.6 theme and I want to upgrade to the 7.x-6 version. I have created 2 subthemes from it that I hardly use, and I hardly use the Zen theme itself - it is supposed to be base theme,not actually used in any case.

Is it okay for me just to disable and delete the base theme and the derived themes and install the 7.x-6.4 as though the previous ones were never installed in the first place?

PS. Are there any hidden downsides to uninstalling themes, like some stray database tables etc?

Était-ce utile?

La solution

Themes don't create their own database tables.

The changes about the theme status (enabled, default, theme settings) are stored in the system and variable tables, along with many other system settings, it's nothing you should be worried about.

Some themes are accompanied by a special module built especially for them, but Zen isn't one of those.

Yes, you can disable and delete old Zen and its subthemes without consequences. Set Bartik as default theme before removing old Zen out of your system.

It's good practice to backup files before deleting, it's up to you, at least check if there are any files you might want to keep, maybe logo images.

Then download and enable the latest Zen. Create the latest Zen subtheme using the latest Zen procedure.

The latest Zen theme structure and procedures are significantly different from the older versions. You'll have to install some bundles and other dependencies and learn how to build Sass through Gulp (if you want Sass)...

You might experience problems if you want to keep the old subthemes and make them work with new the Zen, but if you want to start fresh there aren't bad consequences if you remove old Zen and its subthemes and then install new Zen.

It's good to remember to clear (theme) cache when changing things like these, even though theme registry is rebuilt on visiting the Appearance page.

Licencié sous: CC-BY-SA avec attribution
Non affilié à drupal.stackexchange
scroll top