Jeff,

Can you please explain how to implement style_schemes in this version.

In the .info file there is:

settings[style_schemes] = 'style-default.css'

I presume this is just setting the default scheme?

In theme-settings.php there is:

    $form['style']['style_schemes'] = array(
      '#type' => 'select',
      '#title' => t('Styles'),
      '#default_value' => $settings['style_schemes'],
      '#options' => array(
        'style-default.css' => t('Default Style'),
        // 'my-style.css' => t('My Style'), // Add your own schemes (must go in your themes /schemes directory)
      ),

So I presume this is where you specify the alternate stylesheets?

Thanks

Comments

eft’s picture

Title: Style Schemes in » How to Set Style Schemes?

amended issue subject line

Jeff Burnz’s picture

In your subthemes info file there are actually two settings you need to look at:

settings[style_enable_schemes] = 'off'
settings[style_schemes] = 'style-default.css'

Change "off" to "on".

For the stylesheet you can use the style-default.css that comes with the theme (once style_enable_schemes is on you can use this, its in the css/schemes folder). This will be your default scheme.

To add more schemes simply uncomment 'my-style.css', change it to whatever you want to call it, and add the stylesheet to your subthemes css/schemes folder.

For example if I wanted a new scheme called "alternate-style", it would all look like this:

settings[style_enable_schemes] = 'on'
settings[style_schemes] = 'style-default.css'
    $form['style']['style_schemes'] = array(
      '#type' => 'select',
      '#title' => t('Styles'),
      '#default_value' => $settings['style_schemes'],
      '#options' => array(
        'style-default.css' => t('Default Style'),
        'alternate-style.css' => t('Alternate Style'),
      ),

Then in adapdtivetheme_subtheme/css/schemes add the new stylesheet alternate-style.css and the theme will pick it up strait away.

This will give you two style schemes. Of course if you only want one, just use the style-default.css included with the theme. Note that you can change this also to name it whatever you want.

Note - when you change a theme setting in the info file make sure you go to the performance settings page and Clear Cache Data, so the changes get picked up by the theme registry.

eft’s picture

Jeff - thanks for elaborating

sea4’s picture

hi,

just to make sue i understand, the suggested workflow to customize the sub-theme is to use the style schemes?

If this is the case, why have the default as off?

Jeff Burnz’s picture

"the suggested workflow to customize the sub-theme is to use the style schemes..."

No. A subtheme is an entitly in itself with its own stylesheets, images etc etc - that is the normal way to style a subtheme.

A style scheme is a point-and-click style that you might build for a client or other end user to apply, that changes the subtheme in some way.

dadderley’s picture

@Jeff Burnz
Thanks for the information on this. I was somewhat mystified by this as well.

I am just starting to play around with this theme and I am enjoying it so far. I have not used Skinr before either and there is some learning curve involved. I have used the "Basic", "Clean" and "hunchbaque" themes for starter themes in the past and have liked them a lot.

Adaptive Theme seems to be very robust and I think this is the beginning of a good relationship.
Thanks for your efforts.
Also, a big thanks for your video tutorials - they rock.

sea4’s picture

@Jeff

thanks for clearing this up. i think your approach rocks... or as they say in my part of the world.. totally swaggarfic!

Jeff Burnz’s picture

Status: Active » Closed (fixed)