demon_athens Posted February 19, 2008 Posted February 19, 2008 Hi there, I want to have different background for my categories infobox. I use STS ( the latest) and if I change the background to #FFF all infoboxes come with white backround. Can I do something to have different settings for the category box only? ( no padding, other background e.t.c) ?? THank you! Quote
demon_athens Posted February 19, 2008 Author Posted February 19, 2008 It is possible to create templates for individual infoboxes. For example, if you want the “Information” infobox to be different from the others, create a separate template for this infobox by creating the following files:/includes/sts_templates/TEMPLATE_NAME/boxes/infobox_information_header.php.html (optional) /includes/sts_templates/TEMPLATE_NAME/boxes/infobox_information.php.html Include the name of the infobox template in the filename in the following format: infobox_infoboxname.php.html I also tried that but didn't work. I created a file infobox_categories.php.html and nothing changed to the look of the categories infobox... Any ideas? Quote
demon_athens Posted February 19, 2008 Author Posted February 19, 2008 If I understood correctly you are not a fun of STS templating. ( I wonder why). I am really new to this, I am trying to figure out what is the most efficient way to work with oscommerce if you want to have design freedom, that why I am trying to figure out STS. My problem remains, the solution you said is for a non STS oscommerce installation. ( and its indeed very simple) Quote
demon_athens Posted February 19, 2008 Author Posted February 19, 2008 No, you've got a point here. I don't know about BTS, I 'll google it. Anyway I solved it. Apparently I was "calling" with the wrong "name" ( I wonder what is the correct one), So I made with css the background I needed and I created the 3 other infoboxes with the white background. I know its too much efford for such a rather easy task but it is a solution :) So... here is my custom -> result. Thank burt for your help p.s.: I an so new to all this that I don't have likes and dislikes about modules. :) Quote
demon_athens Posted February 19, 2008 Author Posted February 19, 2008 THanks man! God bless translators :P Quote
jcct31996 Posted April 11, 2008 Posted April 11, 2008 Hi there, I want to have different background for my categories infobox. I use STS ( the latest) and if I change the background to #FFF all infoboxes come with white backround. Can I do something to have different settings for the category box only? ( no padding, other background e.t.c) ?? THank you! I also tried that but didn't work. I created a file infobox_categories.php.html and nothing changed to the look of the categories infobox... Any ideas? I have a similar problem to what demon_athens faced. In my visual design template, I need to display the $header and $content in language box, currency box and shopping cart horizontally (2 columns); instead of the original template boxes that display $header and $content in 2 rows. If I tweaked the infobox.php.html in the folder [boxes], other "boxes" that share the same template file will be affected too. In this case, the problem can be solved if I can tell STS to use another template boxes for the "language box", "currency box" and "shopping cart box" Are there any solutions to this? Quote
cydelic Posted April 13, 2008 Posted April 13, 2008 Your problem is that you are using STS - it's a poor solution to a problem that doesn't truly exist and never has existed. To change 1 infobox is straightforward and is done using CSS: http://www.clubosc.com/how-to-make-just-1-...rent-style.html This also is a poor solution. Just my opinion. ;) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.