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.
I'm having trouble adding theme settings in a Corona flavored sub theme.
Uncommenting the example (or adding other settings) doesn't load in the subtheme's settings page.
$form['auroraco_example'] = array(
'#type' => 'checkbox',
'#title' => t('auroraco sample setting'),
'#default_value' => theme_get_setting('auroraco_example'),
'#description' => t("This option doesn't do anything; it's just an example."),
);
Pasting the same example code in the Aurora parent's theme-settings.php works fine.
I feel like I'm missing something really basic.
Comments
Comment #1
marcvangendI had the same problem, until I noticed that the subtheme's settings file was named
theme_settings.php
, with an underscore. Rename the file, changing the underscore to a dash (theme-settings.php
) and you should be fine.Comment #2
iamcarrico CreditAttribution: iamcarrico commentedClosing as this is an issue with the generator, and issues should be on GitHub.
Also: It is fixed in this commit.