Intallation and setup is totally different from the first version of Adaptivetheme, this is because now we only use subthemes. There is no need to touch the base theme at all.
1) Copy and past the included starter subtheme (adaptivetheme_subtheme) to your sites/all/themes folder or where ever you are installing your theme.
2) Rename the theme folder and info file to your preferred theme name, then open up the info file and change the name as well.
3) Open up your subthemes template.php file and search/replace all instances of "adaptivetheme_subtheme" with your new themes name (there are 6 instances).
4) Open up your subthemes theme-settings.php file and search/replace all instances of "adaptivetheme_subtheme" with your new themes name - there are 2...
One in the function (you must rename the function) and one below it on line 22:
function adaptivetheme_subtheme_settings($saved_settings) {
// Get the default values from the .info file.
$defaults = adaptivetheme_theme_get_default_settings('adaptivetheme_subtheme');5) If you want to use the color schemes features open up the info file, scroll to the bottom and change settings[color_enable_schemes] = 'off' to 'on'.
6) Now you can enable the theme as per usual. Go to the themes list and enable the theme. If you want to use the Panels layouts that come with the core theme you must also enable the core theme.
7) Go to the configuration page for your sub-theme and save the theme settings. This will write the defaults to the database. You need to do this at least once.
8) Because Adaptivetheme contains non-standard regions some blocks may end up in the Leaderboard region when you first enable it, this is perfectly normal and you need to go the blocks page and configure your blocks.
Comments
confusing start or layout error/conflict?
I am just a bit confused about how this looks in prestine state after activating the customized subtheme according to instructions above. The menu navigation block is all at top at 'header' position so to speak, with a link in 0,0 'skip to main content'. Then below it comes the AT logo and what appear to be the prestine header with Sitename and Primary links, then the major page.
Is this how it's supposed to look in a prestine state after activation or? It appear as if the left region has 'floated up on top' of everything else. I just thought to ask before I run ahead filing it as a bug (or more likely conflict with something else). Only AT themes behave like this.
When themes contain
When themes contain non-standard regions the blocks always get assigned to the first region in the regions list, so your block is in the Leaderboard region, go the blocks page to reassign blocks - this is not a bug in the theme, this happens to any theme with extra regions.
You should also go to the theme configuration page and save the theme settings to force the default settings to kick in - the skip link will then be hidden as that is the default setting.
I have updated the instructions to clarify these points.
Lastly, don't be afraid to file issues in the issue queue, that's what its there for :)
Hi, I changed the settings to
Hi, I changed the settings to default and I still get "skip to main content" at the top, how can I get rid of it
Thanks
typo correction
"1) Copy and past the included starter subtheme "
paste is missing the e
Error
I have a problem installing AdaptiveTheme...
When I rename the function in 4 step, appear this error when I try to go the theme configuration:
Fatal error: Call to undefined function adaptivetheme_theme_get_default_settings() in /home/honetqu/public_html/sites/all/themes/hosting/theme-settings.php on line 22
But when I erase "_settings" in the function in 4 step, the theme configuration works and i got 2 new errors:
warning: include_once(/theme-settings.php) [function.include-once]: failed to open stream: No such file or directory in /home/honetqu/public_html/sites/all/themes/hosting/theme-settings.php on line 9.
warning: include_once() [function.include]: Failed opening '/theme-settings.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/honetqu/public_html/sites/all/themes/hosting/theme-settings.php on line 9.
What can I do? Thanks for your help.
...
It sounds like there might be some files missing from your installation - maybe try reinstalling the base theme and check the permissions also. adaptivetheme_theme_get_default_settings is defined in template.theme-settings.inc in the core theme (in the "inc" directory), which makes me think this file may be missing.
template.theme-settings.inc
I discovered the cause and solution when I had this same error. I had all of the adaptive theme files in sites\all\themes\adaptivetheme\adaptivetheme\inc\ template.theme-settings.inc but when I moved each theme up one level to take them out of the adaptivetheme parent folder the errors where resolved. This also resolved missing settings from all the adaptive themes.
Take sites\all\themes\adaptivetheme\adaptivetheme\ and move it to sites\all\themes\adaptivetheme\ and all is well.
setting the image directory for the sub-theme
Was just wondering where you put the images for the sub theme?
...
Place your images in the subtheme - for CSS images I like to use css/images. If I have some different images for IE6 (e.g. when I may need to replace some transparent png's) I'll stick them in the ie CSS folder, and for other images I might use I have an images directory in the subtheme root, so it all looks like this:
sites/all/themes/subtheme/css/imagessites/all/themes/subtheme/css/ie/images
sites/all/themes/subtheme/images
it's ok
worked it out. it just goes in an images directory where the css is.
SubTheme Configuration
I have duplicated the subtheme and made the necessary changes; however, I do not see the Advanced options in my new subtheme. It appears in all the original AT themes.
Color Settings
I've just installed my subtheme using AT subtheme. In the "Advance theme settings" I can now find the menu "Color settings", but there is only de "Default Color Scheme" in the "Color Schemes" menu.
How can I add other color schemes, and where can I find them ?
widths of columns
I'm trying this theme out, after using Genesis for several sites. (thanks for your good work). I have a 16 column grid, with 40px columns. I'm just wondering where all I need to make changes to the theme to make this work. I edited the Skinr Styles in the .info file to match my column widths. Looks like the base.css has grid column widths defined, so I could copy that to my style sheet if I needed to change that. Anything else I'm missing?
'Cufon Settings' does not display with Adaptivetheme Subtheme
Hi,
I have used the Adaptivetheme Subtheme succesfully to setup part of my home page now (using Slideshow), and would like to apply Cufon on entire page with a font I have received. I have run the font thru the Cufon generator etc and followed steps given in "http://www.sooperthemes.com/drupal-blog/cufon-your-drupal-theme-4-steps".
Strangely, the CUFON SETTINGS page in Drupal looks empty except for the two buttons for Save-Configuration' and 'Reset-to-defaults'. I disabled the JQuery related modules in case there was a clash, but that did not help. I wrote some Cufon.replace statements in my cufon invocation script, for some strange reason, these work only on h2 font. Any inputs on this would be greatly appreciated. Do let me know if there is any other information / snapshots needed.
Thanks
Geetha
...
There are two open issues for this: http://drupal.org/node/771940 which is a patch for Adaptivetheme, and http://drupal.org/node/922550 which points to this being a bug in the Cufon module because it doesnt have fieldset legends, either way it can be fixed, I should really commit the first patch so it works for Cufon, or else take over the Cufon module myself, which I have been thinking about doing since we use it a fair amount also.
Re: Cufon issue
Hi Jeff,
Thanks for your quick reply. Any idea when the patch for Adaptivetheme might be done? Will this patch be applicable to Adaptivetheme subtheme as well?
Without using the Cufon module admin UI, for now, do you think I can make cufon work by writing the correct invocation script? I am not very familiar with JS at the moment, so my cufon.replace syntax could be wrong. Could you kindly help on this?
I have two font files with me : FontX_500_400.font.js and FontX_700_600.font.js. My current cufon invocation script (which it seems must be put in the root of 'my_theme_name' directory, otherwise doesn't work) says: Cufon.replace('h1', 'h2', 'li', 'p', { fontFamily: 'FontX' });
The first question I have is, in order to use the bold-FontX (700_600) font on h1 and h2, and to use the normal-FontX (500_400) font on other text on page, given that both these font files have the same font name, how do I differentiate in my Cufon.replace statement? The other question I have is, when I am indicating multiple html tags upon which to replace the font, is the above single-quoted-and-separated-by-commas syntax correct, because it seems to work only on 'h2' for some reason. Wondered if I am making any mistake in this statement..
My cufon-drupal.js file says:
// Initialize Cufon based on Drupal settings
for (o in Drupal.settings.cufonSelectors) {
s = Drupal.settings.cufonSelectors[o];
Cufon.replace(s.selector, s.options)
}
Thanks again,
Geetha
setting up sub theme in drupal7.0
Hi,
Now i am using drupal 7.0.I have great problem to setting up subthemes..I am using Pixture Reloader theme.I must enable Adaptive sub theme for pixture reloader to work it out properly..
My question is how to setting up subthemes in drpal7?
Thanks in Advance
tpl.php files
Hello Jeff,
Thank you for amazing Adaptive Theme. I got couple of questions I couldnt find an answer for.
How to add page.tpl.php and other templates to the team so drupal would recognize them?
Thanks a lot!
In hook_preprocess_page()
You need to add some lines within template.php in the preprocess_page function
// By content type, named as page-content_type.tpl.php
if ($variables['node']->type != "") {
$variables['template_files'][] = "page-node-" . $variables['node']->type;
}
// Use any custom logic, for example a template called page-story-edit.php for the story node form
if ($variables['node']->type == 'story' && arg(2) == 'edit') {
$variables['template_files'][] = 'page-story-edit';
}
Ooops
Sorry, the naming convention in the first function should be page-node-conten_type.tpl.php
// By content type, named as page-node-content_type.tpl.php
if ($variables[‘node’]->type != “”) {
$variables[‘template_files’][] = “page-node-” . $variables[‘node’]->type;
}
What is this error message?
Strict warning: Creating default object from empty value in adaptivetheme_preprocess_html() (line 9 of C:\xampp\htdocs\drupal\sites\all\themes\adaptivetheme\inc\template.process.inc).
Not sure what is wrong in setup. I have tried the folders at different levels and right now have:
drupal/sites/all/themes/
adaptivetheme
adaptivetheme_admin
pixture_reloaded
Site functions but trying to figure out how my directories are in-correct. New to Drupal 7 and this theme but loving it. Thanks.
Starter theme theme.css not taking effect on IE (non-auth)
Hi,
I tried using the Adaptivetheme Subtheme, when I made an entry in the css/theme.css the effect can be seen from most browsers (Opera, Safari, Firefox...) but not in IE (I am using IE8). The css effect can only be seen in my IE browser if I authenticate in. Not sure if I need to set anything for IE for non-authenticated users to see the subtheme theme.css. I found that for IE (if not authenticated) it only reads the base theme base.css file. Please help. Many thanks in advance.
Add new comment