Wzzzup All,
This is my first attempt with AT and I'll keep my request to a minimum.
All I am trying to do, for now anyways, leave theme settings alone, currently set at 960px, and put the #container, and rest of html, inside #container-wrap currently set at 1000px, but will change this to margin/padding/borders once in place to accommodate all theme settings.
So, is the theme settings, how do I put this, not allowing me to go outside the theme setting selected when it comes to the #container.
Everything shows in html with Firebug, except the css (below), but the css does show with FF web developer,. ( theme.css ...at the top for easy access ). Yes I cleared cache, rebuilt registry, etc..
Added to page.tpl
<div id="container-wrap">
<div id="container-top"></div>
<div id="container">
.....rest of html.........
</div> <!-- /container -->
<div id="container-bottom"></div>
</div> <!-- /container-wrapper -->
Added to theme.css
#container-wrap: {
width: 1000px;
height: auto;
margin: 0 auto;
background:red url(img/middark.png) repeat-y;
}
#container-top: {
width: auto;
height:32px;
background:green url(img/con-top.png) no-repeat;
}
#container-bottom: {
width: auto;
height:32px;
background:green url(img/con-bottom.png) no-repeat;
}
Why you might ask. The wrapper gives me extra border/padding/margin settings because I am a CSS style junkie, adding tons of css classes to .tpl's using minimum images in my themes. There is only 6 images planned for this theme build, 3 are above, for a full featured portal site.
http://zenit.lazykatz.com/ is a bare demo, forgive the name, I try/use all starter themes.
THX in Advance,
Grizz
Comments
Comment #1
Grizz commentedI have literally gone through this entire theme system, but it seems you cannot add anything to it like above.
Tried to use 1020 for container in theme settings, and put new div's above inside it, nothing.
Tried using fluid, tried using specific widths/height independently, and other settings as in http://drupal.org/node/679478 , nothing.
Tried moving/editing tpl templates into sub-theme, nothing.
Tried using the default AT theme itself, nothing works, it seems you use what is there and nothing else.
We may/or not be hosting an AT theme as an option when our site launches next month.
Grizz
Comment #2
dreamleafJeff is currently on holiday in Thailand so has infrequent access to answer the issue queue, but he is checking in as much as possible. He's due back this weekend if that's any help... I would say this is one of the least "unsupported" themes as I know Jeff has it under constant development.
I can't recall what the settings are in the stable branch, but I know that the dev release has the option for larger widths that 960px, it's incremental up to 1260px which should solves your initial width issue.
The you would still face the addition of extra divs you want, this should be as simple as placing the div's in within the subthemes tpls - within the #container. An important thing to remember if you were doing this would be to account for the extra divs when setting the sidebar widths through the theme settings - the settings will still think the usable area is the settings width.
Hope this helps.
Comment #3
Grizz commenteddreamleaf,
Thanks for holiday tip, just got back from Bankok myself, maybe we crossed paths.
It's not a width issue, I can get rid of width settings all together by turning them off in the theme-settings.php, or delete them all together.
I've been at this several years, I know how to do these "simple" tasks.
IF, thats a big IF, I had to guess why I can't place a wrapper around the container, and use any width for container, the negative margins being used, and/or the first 5 lines of code for the Layout settings in the template.preprocess-page.inc, or something else maybe.
I'll check back periodically, just move this task further down on list of To-Do's.
Grizz
Comment #4
Grizz commentedfixed.
Comment #5
Jeff Burnz commentedAdding markup to any template is no problem.
If your CSS is a strait copy paste from your stylesheet then the problem is syntax - you have a colon after each selector but no pseudo class, so the CSS selectors are invalid.
#container-wrap: {}should be#container-wrap {}and so on.