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
Comment #1
eft commentedamended issue subject line
Comment #2
Jeff Burnz commentedIn your subthemes info file there are actually two settings you need to look at:
Change "off" to "on".
For the stylesheet you can use the
style-default.cssthat 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:
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.
Comment #3
eft commentedJeff - thanks for elaborating
Comment #4
sea4 commentedhi,
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?
Comment #5
Jeff Burnz commented"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.
Comment #6
dadderley commented@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.
Comment #7
sea4 commented@Jeff
thanks for clearing this up. i think your approach rocks... or as they say in my part of the world.. totally swaggarfic!
Comment #8
Jeff Burnz commented