Like other versions of Adaptivetheme there are many theme settings. Here I'm going to introduce the main ones as they pertain to the core theme - most of the commercial themes and Pixture Reloaded for Drupal 7 have many more settings. These are just the default settings that come with all themes.
Layout Settings
Page Layout
There are 3 main settings you can apply to your theme - the Page Width, Sidebar Widths and the position of the sidebars.
Page Width allows you to set either a fixed width (pixels) or a fluid width (percentages). For fixed with there are increments ranging from 600 to 1500px (in increment of 60px) and for fluid width from 80 to 100% (in increments of 5%).
Sidebars are always fixed width and you can set the width on them individually. Increments range form 60px right up to 960px (in the extreme edge case you really want a huge sidebar). This makes it very easy to have one fat and one skinny sidebar, or have them both the same width.
The final setting allows you to position the sidebars - by default they are positioned left and right of the main content, a pretty standard three column layout. Alternatively you can choose to place both sidebars to the left of the main content, or to the right, the latter being a common choice for blogs.
Login Block
There is an option to output the login block horizontally. This will place the form elements on one line.
Search Results
The Search Results settings allow you to control what is output in the search results - it won't give you control over the fields (use Drupal cores fields display settings for that) what it does allow you to control are the additional things that print on search results, such as the content type, author name, date and so on. You can also change the delimiter than separates these items.
Breadcrumb
One of the biggest pains in Drupal is there is no default way to just switch off breadcrumbs - but this theme will allow you to do just that. If you choose to show the breadcrumbs then there is an extra option to show/hide the "Home" link.
Development
By default Adaptivetheme prints a lot of extra classes for theming, but it also includes settings for adding more classes if you need them. There are options for adding extra CSS classes for Page, Articles (nodes), Comments, Blocks, Menus and Item Lists.
Finally there is a Development setting that will add <span> tags around menu items. This can be very useful when theming menus links
Comments
Multiple Page Layout Settings?
Is it possible to use multiple laytout settings on a page without make custom .tpl.php files? For example, I'd like to have two sidebars on the front page, but only one on nodes. Right now, I'm using a new region ('sidebar_third' for example) and then coding a custom page--node.tpl.php to render that region instead of sidebar_first and sidebar_second.
...
Why not just use block visibility to hide blocks that you don't want so the sidebar doesn't appear?
AT Magazine and Noggin module
I installed the noggin module.
In Bartik theme the header picture provided by noggin worked immediatly.
I didn't find a way to get the same result in AT Magazine.
Is there any specific configuration I forgot?
Thanks
Change the selector
You need to change the CSS header selector to
header#header, this is a setting for Noggin on the theme settings form.HTML5 <canvas>
You have made a fantastic theme, the only thing I cant work out is how to implement the HTML5 tag, in the pages, do you have any information on that please?
Hide Home link in breadcrumb
In the D7 version of Fusion, the options to show or hide the home link, or change the character that separates the breadcrumbs are both missing. There is only the option to toggle the breadcrumb on or off.
I'm using Fusion Starter 7.x-1.x-dev.
Thanks.
Great theme start.
Thanks for your work on this Jeff. It is much appreciated by folks like me who hope to accelerate their development.
I see have extended the theme master to place custom classes on primary and secondary navigation
elements. I think they are a great idea and nearly solve one of my major gripes around drupal, the inability to easily assign an active class to a navigation element and have that class tracked while you move around between secondary and tertiary navigation pages.
For Illustration purposes, if I am at Tertiary page X contained within Secondary navigation Y that itself is a child of primary navigation Z, I should be able to flag that X and Y are "active" in their class designations and it should track as I move between pages. Your theme leads me to think this is possible but I am just not seeing how to extend this further to a tertiary navigation of my own and add the active tracking features.
Thanks again for your efforts.
Andrew
I meant Z and Y but you get
I meant Z and Y but you get the point
additional idea
I figured out my way around the navigation issues in D7 using the Menu Blocks module. It is fantastic and saved my life.
I would love to add the node type to the body class but modifying my subtheme for adaptive to place the following line really throws a wrench. In your next revision, could you consider adding this capability?
//add node type classes to the body tag specifically to handle calendar$vars['body_classes'][] = 'type-' . $vars['node']->type;
I think this was incorrectly set in your D7 version of Adaptive
I could not for the life of me figure out why my node-types weren't showing up in the pages even when I was adding them by hand like above in the template.php until I took a look at the theme master files adn it appears they were being stripped out even though I set both the .info and the theme settings page to render them with a value of one.
In the file template.process.inc you had
// template_process_htmlfunction adaptivetheme_process_html(&$vars) {
$classes = explode(' ', $vars['classes']);
if ($node = menu_get_object()) {
$node_type_class = drupal_html_class('node-type-' . $node->type);
if (in_array($node_type_class, $classes)) {
theme_get_setting('extra_page_classes') == 0 ? '' : $classes = str_replace($node_type_class, '', $classes);
$classes = str_replace('node-type-', 'page-type-', $classes);
}
}
$vars['classes'] = trim(implode(' ', $classes));
}
And I replaced it with this to get it working.
// template_process_htmlfunction adaptivetheme_process_html(&$vars) {
$classes = explode(' ', $vars['classes']);
if ($node = menu_get_object()) {
$node_type_class = drupal_html_class('node-type-' . $node->type);
if (in_array($node_type_class, $classes)) {
if (theme_get_setting('extra_page_classes') == 0) {
$classes = str_replace($node_type_class, '', $classes);
}
$classes = str_replace('node-type-', 'page-type-', $classes);
}
}
$vars['classes'] = trim(implode(' ', $classes));
}
I find this kind of hacky
You seem to have changes adaptive themes code.
instead I put the following code:
html.tpl.php:
<body class="<?php print $classes; ?> <?php print $more_classes; ?>"<?php print $attributes; ?>>template.php:
function yourtheme_preprocess_html(&$vars) {...
//add node type classes to the body tag
$node = menu_get_object();
if (isset($node)){
$vars['more_classes'] = 'type-' . $node->type;
}
and don't forget to change the function names to your theme name.
It is unclear to me also why would adaptive theme hide the very useful classes :|
Because not everyone wants them, or needs them
Because not everyone wants them, there are theme settings to just switch the extra classes on...
Hiding/Removing Breadcrumbs in AT Subtheme 7.x-1.2 (corrected)
I’m working with AT Subtheme 7.x-1.2. Under Home » Administration » Appearance » Settings, when I toggle “Breadcrumb » Display Breadcrumb” from Yes to No, the setting reverts to Yes upon/after saving. Even after much experimentation, the breadcrumb line on the main site (vs. admin) has never gone away. (Also tried changing the setting on AT Core, in case there was some connection.)
Any help/suggestions appreciated. Many Thanks. Doug
Add new comment