Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello,
I have activated one sidebar. Using Firebug I found out that the width is Grid 4 (316 px). I want to reduce the width to grid 3 (232px) and increase the width of the main content from grid 8 to grid 9 (652 to 736px).
How to do this? I guess changing inside the aggregated CSS.css file is not really a solution, so probably I have to modify the page.tpl.php file? Can anybody help me to do this please?
Thank you
Comments
Comment #1
majovdh CreditAttribution: majovdh commentedsubscribing
Comment #2
devzero CreditAttribution: devzero commentedYou can modify 'logics/layout.inc' - I think everything there is quite clear.
But I think, it would be great to have a way to do it through the administration pannel.
Comment #3
shruti.sheth CreditAttribution: shruti.sheth commentedHello,
One of the solutions for changing the width of the one sidebar and the main content can be as follows.
1. Add the following code in your marinelli.info file
2.Create a css file named marinelli.css in your sites/all/themes/custom/marinelli/css/
3. Add the following code in your marinelli.css file
Hope this helps!
Regards,
Shruti Sheth
Comment #4
jimbaer CreditAttribution: jimbaer commentedAnother method is to find your "layout.inc" file for marinelli, which allocates grid positions to the various layout cases. Out of the box, a two column content and one column for menus would be allocated to Grid 8 and grid 4. Changing these allocations to grid 9 and grid 3 would do the job, but I think this would apply to all sites using Marinelli. For my site (jimbsail.info, Drupal 7) I had a left content and right menu structure, and narrowed it by changing the class from 'grid_4' to 'grid_3' :
elseif (($first && !$second) || (!$first && $second)) { // we have only one sidebar
switch ($layout_type) {
case 1: // content on the left
$class = 'grid_3';
And similarly changing the appropriate case further down the file from 'grid_8' to 'grid_9'
I'd be very happy to hear from anyone if this breaks any fundamental rules, or leaves out any further changes I should have made. It obviously introduces a maintenance step when updating marinelli, but I'm no expert in these matters!