Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding Classes to Stylesheet


thopunk

Recommended Posts

I was wondering how I could add a class to the stylesheet. I wanted to add a background to the side boxes (categories, shopping cart, whats new, etc..) and when I add the code to the .infoBox class it also changes the background of the middle portion with the "new products" on the main page and the area on the actual product page because it references the same class. I wanted to add a .sideBox class or figure out how to change those few other that reference the same class. I tried to just add a class to the stylesheet and rerference it, but that doesn't work because of the boxes.php code in the classes folder. Any help would be appreciated, thanks!!!

Link to comment
Share on other sites

hi all :

 

i am trying to do what i think is the same thing, basically, the search box to have a diferent css class, i tried to follow the example given in the knowledge base but needless to say it's a little confusing..

 

i mean , what exactly does a "class" do in oscommerce... :huh:

 

so, if anyone can please, please, please, pretty please give us a little tutorial on this .

:)

Link to comment
Share on other sites

I don't really know what to tell you, that's pretty explanatory above. Not for this to be rude, but from the sounds of it you need to learn the terms and what they mean. You're asking what a class does in osc, which is a php thing and not just a osc things. So I think you might be looking for a php tutorial. That might make more sense that way and help you with what your trying to do if you understand the terms a little better...:)

Link to comment
Share on other sites

There is a contribution that allows each box to have a different look. You could use that or see if there is one that will just change the one box.

 

and psstt... classes are not just a php thing, actually it really has nothing to do with php other than the fact you can use a class to effect how part of a php code appears. It's a CSS thing, and there are many helpful sites online. =)

Wendy James

 

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

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...