Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Categories layout


woutertarifa

Recommended Posts

Posted

Hi everybody,

 

I want to change the layout of my category box. I want to seperate the different categories by a thin grey horizontal rule. I am not a php expert and I have no idea how to do this.

 

Hope you can help me out.

 

Thank you.

 

Wouter

Posted
Hi everybody,

 

I want to change the layout of my category box. I want to seperate the different categories by a thin grey horizontal rule. I am not a php expert and I have no idea how to do this.

 

Hope you can help me out.

 

Thank you.

 

Wouter

in catalog/includes/boxes/categories.php

find around line 54

$categories_string .= '<br>';

change to:
$categories_string .= '<hr><br>';

this will also add lines between sub-categories when a category is clicked

make it like this to make the resulting box a little smaller

 $categories_string .= '<hr>';

My Contributions

 

Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly

Password Protect Admin

"No matter where you go....There you are" - Buccaroo Bonsai

Posted
in catalog/includes/boxes/categories.php

find around line 54

$categories_string .= '<br>';

change to:
$categories_string .= '<hr><br>';

this will also add lines between sub-categories when a category is clicked

make it like this to make the resulting box a little smaller

 $categories_string .= '<hr>';

I forgot you wanted it grey. you can add a color attribute like this:

 $categories_string .= '<hr color="#c1c1c1">';

 

change the numbers to your shade of grey

My Contributions

 

Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly

Password Protect Admin

"No matter where you go....There you are" - Buccaroo Bonsai

Posted
I forgot you wanted it grey. you can add a color attribute like this:

 $categories_string .= '<hr color="#c1c1c1">';

 

change the numbers to your shade of grey

 

 

Thank you for your reply Bill. I Applied your code and I indeed have horizontal rules now.

 

The thing is that they are about 2 or 3 pixels thick and I would like to have them only 1 pixel. would you know how to do this?

 

Thank you very much.

Archived

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

×
×
  • Create New...