Hi Skounis, thanks for fixing the problem with the new version. I have yet another little problem. I learned that with almost all the drupal themes, a block region automaticaly disapear when you put nothing in it but here i noticed that for example when you put nothing in the right sidebar section, it doesn't disapear. (and even when i try to change the css). can you give me please the solution to disable it ? Thanks again for your work.
Take care

CommentFileSizeAuthor
#3 bluemastersWithoutSidebar.jpg327.16 KBgtsopour
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

skounis’s picture

Assigned: Unassigned » skounis
skounis’s picture

Version: 6.x-1.0 » 6.x-1.1
gtsopour’s picture

Status: Active » Closed (fixed)
FileSize
327.16 KB

The right sidebar is a region that printed only inside page.tpl.php

<div id="right" class="clearfix">
<?php print $right;?>
</div><!--right-->

If you don't put a block in the right sidebar, this region is not printed.

<div class="clearfix" id="right"></div>

But if you want the main div take all the available space of the page,

<div id="main"  class="inside clearfix">  
<?php print $content_top;?>  
<?php print $messages;?>
<?php print $tabs;?>   
<?php print $content;?> 
</div><!--main-->

you should make the following change to your style.css file from

#main.inside { float:left; width:600px; padding:20px;font-family:verdana; font-size:12px; }
#right { float:right; width:267px; padding:0;}

to

#main.inside { width:867px; padding:20px;font-family:verdana; font-size:12px; }
#right { width:0; padding:0;}

Finally, you should know that #main and #right parent div #main-area-inside has a background image property,

#main-area-inside {  display:block; overflow:hidden;  background-image:url(images/main-area-bg.png); min-height:1000px;}

You can change it to a simple background color,

#main-area-inside {  display:block; overflow:hidden;  background:#ffffff; min-height:1000px;}

I have attached the result from the About page without right sidebar.

skounis’s picture

Status: Closed (fixed) » Needs review

Should this improvement became a part of BlueMasters theme official distribution ?
(in this case gtsopour just drop me the .patch file :-) )

+1, from me

skounis’s picture

Assigned: skounis » gtsopour
clintthayer’s picture

Applied these changes and looks great when no block is defined for the rightside bar. But when I do have one - it drops to the bottom of the page, under the main content.

Thoughts?

skounis’s picture

Assigned: gtsopour » skounis

According to the changes mentioned in this issue the width of the main area is set to take over the whole available space (867px). No room left for any block in the side bar.

Definitely we have to improve this following a more sophisticated approach.

basking4me’s picture

This is just about what I am asking about. Now with the sidebar gone, How do i change the content background from White to a close color like the one outside. just like you have for this website: http://www.maradiva.com/ and http://www.olympiaresort.com/.

Many thanks while anticipating your response.

basking4me’s picture

Many thanks Guys,

I have done it using the codes outlined here. Will be opening up another issue soon. Thanks all the same. Really appreciate your explanation gtsopour.

Regards