Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Resize right column in osc 2.3


aftabn10

Recommended Posts

Posted

Hi, I was looking for some help to reduce width of the right column. Currently it's 194 and I need to make this 170 but this would mean increasing the middle by the difference of 24. I know I need to edit the 960 gs file but not sure what part.

 

Can any1 help?

 

Thanks in advance.

Posted

<?php

if ($oscTemplate->hasBlocks('boxes_column_left')) {

?>

 

<div id="columnLeft" class="grid_<?php echo $oscTemplate->getGridColumnWidth(); ?> pull_<?php echo $oscTemplate->getGridContentWidth(); ?>">

<?php echo $oscTemplate->getBlocks('boxes_column_left'); ?>

</div>

 

<?php

 

from includes/template_bottom.php will set width.

 

So you can just analyse this code and do apply corrections.

 

or call this first with what width you want : function setGridContainerWidth($width) {

$this->_grid_container_width = $width;

}

 

Satish

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Posted

Thanks for your reply Satish. So i am guessing the changes need to be made to the template_bottom file right?

Posted

This is class code in includes\classes\osc_template.php

 

var $_title;

var $_blocks = array();

var $_grid_container_width = 24;

var $_grid_content_width = 16;

var $_grid_column_width = 4;

 

function oscTemplate() {

$this->_title = TITLE;

}

 

function setGridContainerWidth($width) {

$this->_grid_container_width = $width;

}

 

so two ways to do this:

1.var $_grid_container_width = 24; change this to what you want.

 

else

call this setGridContainerWidth and set width before using My above stated code in My previous post.

 

Satish

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Posted

satish, thanks for your response. I am aware that i can control the width of the columns by increasing the content_width, but the problem is that the size I am looking for is 170px and currently with the column_width equalling 4 this gives me a size 194px and if i reduce the 4 to a 3 (change 16 to 18 for column) this is then too small and if i input 3.5 then the whole grid messes up. Do i have any other options?

 

Thanks btw.. really appreciate your help.

Posted

 

1.var $_grid_container_width = 24; change this to what you want.

 

 

You can't do this just like this. You will need also to change the 960 stylesheet to use the number of columns you specified here, otherwise you will get a mess

 

To manipulate the column/content width you can read here and here

 

If the "step" of 30 pixels is too high for you, you will need to create a new styleshhet here

 

More info about the 960 gs (for example you can not have "half" grids) here

Posted

multimixer thanks for your response. You have helped me out once again. i will have a look at the links you have posted and hopefully get somewhere with this.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...