Why new themes don't work with default fron page ( which is /image), but work fine with any other pages like /image /forum ??

stevenzhou - August 26, 2008 - 22:50

hi

I am a newbie in Drupal 6.4

Recently, I applied some 2 or 3-column themes, with sidebars on right side.

I found that, on the default front page, right side bar always got pushed down instead of staying on the right side.
but, when I clicked on any other page like /image or /admin, then the right side bar ruturn back to the proper location on the right.

I checked CSS behind, when Drupal generates default front page or /blog, for some reason, the Div container which contains right side bar got embedded within the whole page container,

but on any other pages, like, /image, or /admin, the Div containers for Primary content part and right side bar part will be separated, therefore, right side bar always stays on the right location ( float:right).

Please help me out here, what went wrong ? If I didn't make my problem clear, please email me I can re-clarify it, forgiving my poor English.

info@melissazhou.com

www.melissazhou.com

Is your site built with the

Jeff Burnz - August 26, 2008 - 23:04

Is your site built with the Pushbutton theme?

Pushbutton is built using tables for layout, so the sidebars in are table columns (not in div tags). There should be no reason to use floats to position the sidebars. The tables should take care of all the layout.

Are you using a front page template, such as page-front.tpl.php? If so, check for a small error with the HTML for the right sidebar.

I understand Pushbutton

stevenzhou - August 26, 2008 - 23:26

I understand Pushbutton theme is table based, but what I tried actually were tableless themes for Drupal 6.x, which can be easily found under Drupal Themes page, like : aBeesParadise http://drupal.org/project/aBeesParadise
or: Alek 2.0 http://drupal.org/project/alek_2_0, etc.

Let me make it clear, only on the page of /blog, the right sidebar got pushed down, instead of positioning right side properly. but any other pages I went are good, like /image, /admin, /user, /forum.

I know a bit CSS, I checked the code generated by page.tpl.php, the reason why /blog page doesn't work, is beacuse the DIV contains right sidebar got placed within the Primary container DIV. Which was wrong.

But any other pages I went, fine. The Div holds right sidebar properly got seperated and Paralleled with the Primary Div holds the main contain.

Say example:

Correct way should be like : <div id="primarycontent">  </div>  <div id="rightsidebar"> </div>

Wrong way went like: <div id="primaryconent">  <div id="rightsidebar"> </div> </div>

Please help me out, thanks again.

info@melissazhou.com

www.melissazhou.com

Ok, I see. Well, its going

Jeff Burnz - August 26, 2008 - 23:41

Ok, I see.

Well, its going to depend entirely on which theme you choose to use - each theme's HTML is a bit different to the next. I might suggest trying the Zen theme and see if the same thing happens.

Its not really possible for me to offer feedback about ALL themes, if you pick one and use that, then I can offer support and advice for that one theme, try some more out, the Zen theme has a very robust layout as do many others.

Whats wrong with the Pushbutton theme you are using, it looks great and for your purposes I would think its a reasonable choice.

 
 

Drupal is a registered trademark of Dries Buytaert.