Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Resize box width


Guest

Recommended Posts

Posted

Hello, i'm sure someone asked before me, but i looked for hours and found nothing without a contrib :blush:

I'm just lookin for a way to enlarge the categorie box on the left. (all the boxes

on the left side is ok, or all) the text is split in two lines.

 

Thanks chris

Posted

look in catalog/includes/application top for

// customization for the design layout

define('BOX_WIDTH', 125); // how wide the boxes should be in pixels (default: 125)

just change it to whatever you want.

Wendy James

 

Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.

Posted
look in catalog/includes/application top for

// customization for the design layout

  define('BOX_WIDTH', 125); // how wide the boxes should be in pixels (default: 125)

just change it to whatever you want.

 

Which will make both the boxes on the left AND right side wider !

If you want to manipulate the size of the infoboxes without the above solution or contrib you can add   codes in between the header text words and/or around the header text.

Ie. 'This is my header' and '  This is my header  '

This will influence the whole left or right column but not both and if you have mulitple languages it will work for that specific language only while the others are not influenced.

 

HTH

Posted

it will also add a bunch of spaces

 

to set each differently you can either get a contribution that lets you change them in the admin area

 

or you can create a new define..

change

define('BOX_WIDTH', 125); // how wide the boxes should be in pixels (default: 125) to something like

define('BOX_WIDTH_RIGHT', 125); // how wide the boxes should be in pixels (default: 125)

make a

define('BOX_WIDTH_LEFT', 125); // how wide the boxes should be in pixels (default: 125)

 

then go into the main files in the catelog folder and alter all settings for box width ( i believe it is called for 4 times ) to your new defines

Wendy James

 

Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.

Posted
it will also add a bunch of spaces

 

So ?

They are non-breaking spaces and will keep the line together forcing the box width to grow with the header text. Apply enough non-breaking spaces around the header string to satisfy your longest category name and the infobox will nicely size to it.

Your other options involve a lot of work and might or might not be needed. But as you show, there's more roads to Rome :D

Posted
look in catalog/includes/application top for

// customization for the design layout

  define('BOX_WIDTH', 125); // how wide the boxes should be in pixels (default: 125)

just change it to whatever you want.

 

Thank you both, i took this one it's easyer for me beacause i've got long cat. names (french) :rolleyes:

Archived

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

×
×
  • Create New...