Hi,

I have followed your instruction and I was not able to find the setting in the theme setting area. Your module writes the css file, but the setting option will not appear. I have even tested on an out of box clean drupal installation.

Please let me know what do I do wrong or what the problem could be.

Thank you,
Gabor

Comments

vojnar’s picture

Checked it with 1.3 and 1.0 version on these pages: admin/build/themes/settings/garland and admin/build/themes/settings/
and no additional setting was available just the original.

absoludo’s picture

Status: Active » Closed (fixed)

The setting is not set by the CSS.

What you need to do is add the CSS markup as described on the project page.
font-color:/*setting:site_font_color*/12px/*setting*/;

Then add a variable to the preprocess_page hook in your template.php

function YOURTHEME_preprocess_page(&$variables) {
  $site_font_color = theme_get_setting('site_font_color');
}

Finally you have to set the form element on your theme settings page (admin/appearance/settings/YOURTHEME). This is added to your theme-settings.php file.

$form['body']['site_font_color'] = array(
      '#type' => 'textfield',
      '#title' => t("Couleur du texte"),
      '#default_value' => $settings['site_font_color'],
      '#description' => t('Par défaut : black'),
);