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.
Settings of sub theme (logo, site name, etc.) can be changed, but are not stored despite confirmation message says so. Main theme works fine. Worked previously, but no longer after sub theme file change. Changes of file and directory attributes were not successful.
Comments
Comment #1
janes_p CreditAttribution: janes_p commentedComment #2
markhalliwellThe issue lies with the fact that the theme's settings were saved from the UI. This effectively stores the settings in the DB in the
{variables}
table (thus ignoring the .info file). All you need to do is remove the variabletheme_[theme_name]_settings
from the database, where[theme_name]
is your sub-theme's machine name (probably "dsim" in this case). The easiest way to do that is to use drush:drush vdel theme_dsmi_settings
Comment #3
janes_p CreditAttribution: janes_p commentedThanks, Mark - for the quick response and for the accurate hint.
Removing the theme settings variable in the DB solved the issue. As I am not (yet) drush proficient, I did it directly in der DB. Just renaming theme directories on the site is obviously not a good idea.
Comment #4
markhalliwellYou're very welcome. Adjusting title to reflect the issue as "stored" implies the using the UI to save in the DB.
Comment #5
dgtlmoon CreditAttribution: dgtlmoon commentedCan they be strongarm'ed possibly? - yes in 'theme_YOURTHEME_settings'