Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

InfoBox Heading Question


Job4Suprmn

Recommended Posts

Posted

I can't believe I can't figure this out. I've searched for an hour. Please help! All I need to know is how to get rid of the info box heading. Like the Categories, Quick Find, etc. Or at least get rid of the unattractive gap between the top of the text in the info box and the infobox heading.

 

Any help would be great. Thanks so much!

 

Erica

AIM: BigBoosting

Erica

Posted

To get rid of the info box headings, proceed to catalog/includes/languages/english.php

 

For Categories, seach for BOX_HEADING_CATEGORIES and remove the word Categories. For example,

 

Replace:

 

define('BOX_HEADING_CATEGORIES', 'Categories');

 

With:

 

define('BOX_HEADING_CATEGORIES', '');

 

and so on...

 

Hope this helps.

Posted

Does this get rid of the actual cell that it is in?

 

Any idea how to keep the heading, but get rid of the gap between the heading and infobox content? http://www.bigboosting.com/store is my site and you can see how unattractive that big gap is.

 

Also do you know how to left-align the categories and quick find box?

 

Thanks!

Erica

Erica

Posted

Nope, it only gets rid of the text. The cell remains.

 

If you just want to get rid of the gap, open up catalog/includes/classes/boxes.php. Around lines 84 - 86, search for:

 

function infoBoxContents($contents) {

$this->table_cellpadding = '3';

$this->table_parameters = 'class="infoBoxContents"';

 

and change the table_cellpadding = '0'.

 

That's it!

Posted

Oops, I have just noticed there is a second part to your question.

 

To left align the headings of the infoboxes with the rest of the content, open up catalog/includes/classes/boxes.php. Around line 104 - 108, search for:

 

if ($left_corner == true) {

$left_corner = tep_image(DIR_WS_IMAGES . 'infobox/corner_left.gif');

} else {

$left_corner = tep_image(DIR_WS_IMAGES . 'infobox/corner_right_left.gif');

}

 

Change to:

 

if ($left_corner == true) {

$left_corner = '');

} else {

$left_corner = '');

}

 

Done!

 

If you want it to look cleaner, you may wish to replace everything to just:

 

$left_corner = '';

Archived

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

×
×
  • Create New...