I would like to alter the code of the theme so that when the sidebars are deactivated the width of the main body become larger then its currently set to be.
It would seem that the code to alter is located in template.php and the code that needs to be altered is:
function amadou_get_mainContent_width($sidebar_left, $sidebar_right) {
$width = 530;
if (!$sidebar_left) {
$width = $width + 180;
}
if (!$sidebar_right) {
$width = $width + 180;
}
return $width;
}
function amadou_get_sideBars_width($sidebar_left, $sidebar_right) {
$width = 415;
if (!$sidebar_left) {
$width = $width - 205;
}
if (!$sidebar_right) {
$width = $width - 205;
}
return $width;
}
however I am unfamilier with this syntax, still learning php and when I tryed adjusting some of the values the main content did indead get bigger but even when the sidebars are still activated. (some pages on my site have the sidebar activated, some dont)
Ideally I would like the width of the main content to be 100% of the screen when the sidebars are deactivated but if I could for now just be able to adjust the width to be larger Id be happy.
thanks
Comments
Comment #1
sk33lz commentedI am unable to reproduce this, as the Amadou theme automatically does this in the 6.x version. Please upgrade your site and theme to Drupal 6.x if you haven't already at this point.