Hi,

I created a subtheme that looks fine on the surface. however, when I try to save any of the theme settings like Look n Feel or Plugin settings they never save. Any ideas?

BTW. Great theme. Thanks!

Comments

psychobyte’s picture

One other thing I noticed.

The theme settings can be set via the parent theme when it is enabled or disabled.

psychobyte’s picture

To create the subtheme, i copied over the old .info file from the simplecorp theme, removed the settings variables, and named the subtheme appropriately. Is there something that I'm missing?

name = Sub SimpleCorp
description =  subtheme of SimpleCorp theme.
version = VERSION
core = 7.x
base theme = simplecorp

stylesheets[all][] = css/mycustom.css


regions[header] = Header
regions[navigation] = Navigation
regions[top_content] = Top Content
regions[banner] = Banner
regions[highlighted] = Highlighted
regions[content] = Content
regions[sidebar_first] = Sidebar First
regions[sidebar_second] = Sidebar Second
regions[bottom_content] = Bottom Content
regions[footer_first] = Footer First
regions[footer_second] = Footer Second
regions[footer_third] = Footer Third
regions[footer_fourth] = Footer Fourth
regions[footer] = Footer
regions[help] = Help
regions[page_top] = Page top
regions[page_bottom] = Page bottom

; Information added by Drupal.org packaging script on 2014-04-08
version = "7.x-1.1"
core = "7.x"
project = "sub_simplecorp"
datestamp = "1396987271"

molavec’s picture

psychobyte I have same problem!! For the moment I change theme look'n feel of SimpleCorp Theme and it change the Simplecorp_subtheme. I could be good know how do it in the subteme directly, but it's works for the moment.

molavec’s picture

I found where change is needed!!

In new template.php is necessary to change the css added and copy css folder to subtheme. Then you can change those CSS files at pleasure!!

/**
 * Add styles for theme color schemes.
 */
if (!(theme_get_setting('theme_color','simplecorp_subtheme') == 'default')):
    $theme_color = theme_get_setting('theme_color','simplecorp_subtheme');
    drupal_add_css(drupal_get_path('theme', 'simplecorp_subtheme') . '/css/color-schemes/' . $theme_color . '/styles.css', array('group' => CSS_THEME, 'weight' => 120));
endif;


/**
 * Add columns.css
 */
if (theme_get_setting('columns_enable','simplecorp_subtheme')):
    drupal_add_css(drupal_get_path('theme', 'simplecorp_subtheme') . '/css/shortcodes/columns.css', array('group' => CSS_THEME, 'weight' => 116));
endif;


/**
 * Add lists.css
 */
if (theme_get_setting('lists_enable','simplecorp_subtheme')):
    drupal_add_css(drupal_get_path('theme', 'simplecorp_subtheme') . '/css/shortcodes/lists.css', array('group' => CSS_THEME, 'weight' => 117));
endif;


/**
 * Add boxes.css
 */
if (theme_get_setting('boxes_enable','simplecorp_subtheme')):
    drupal_add_css(drupal_get_path('theme', 'simplecorp_subtheme') . '/css/shortcodes/boxes.css', array('group' => CSS_THEME, 'weight' => 118));
endif;

argiepiano’s picture

Confirming. For me, I had to change all strings 'simplecorp' to the machine name of the subtheme ('simplecorp_fc' in my case), in both files, template.php and theme-settings.php. Additionally, I renamed the functions in these files to replace simplecorp with simplecorp_fc (e.g. function simplecorp_page_alter() to simplecorp_fc_page_alter() )

argiepiano’s picture

And similar adjustments to the tpl.php files that use the theme settings