Shazeeb Posted March 18, 2010 Posted March 18, 2010 Can somebody please help me, and tell me how i could add buttons to one of the boxes on the left hand side, the category box, so instead of plain text i can use a button that i have created. Thanks in advance Quote
multimixer Posted March 18, 2010 Posted March 18, 2010 What text exactly do you want to replace in the category box with a button? The category box shows category names, so, where do you want to have a button? Quote My community profile | Template system for osCommerce - New: Responsive | Feedback channel
Shazeeb Posted March 18, 2010 Author Posted March 18, 2010 Hi i want to replace for example where it says hardware, in plain text instead of this i want to put a button there Thanks Quote
Shazeeb Posted March 18, 2010 Author Posted March 18, 2010 I.e i want to replace the category names with buttons Thanks Quote
multimixer Posted March 18, 2010 Posted March 18, 2010 You can not replace category names with buttons, for the simple reason that the category names as shown in the category box are coming from the database and change dynamically as you do changes in the database via your admin. Buttons are images, and they can not be created dynamically in the same way. What you probably want is, to show a listing in the category box, where the category names look like being buttons. In real they are not. It is plain text on a background, so it looks like a button. To do this you need to apply new css rules to the box categories.php and then tweak them in your stylesheet.css. A recommendation is to install "dynamenu", where the hard job is done already, the only thing you would need to do is to make some nice background images to imitate the look of buttons. Search for it in the addons, it will give you even more features and control over the category menu Shazeeb 1 Quote My community profile | Template system for osCommerce - New: Responsive | Feedback channel
Shazeeb Posted March 18, 2010 Author Posted March 18, 2010 You can not replace category names with buttons, for the simple reason that the category names as shown in the category box are coming from the database and change dynamically as you do changes in the database via your admin. Buttons are images, and they can not be created dynamically in the same way. What you probably want is, to show a listing in the category box, where the category names look like being buttons. In real they are not. It is plain text on a background, so it looks like a button. To do this you need to apply new css rules to the box categories.php and then tweak them in your stylesheet.css. A recommendation is to install "dynamenu", where the hard job is done already, the only thing you would need to do is to make some nice background images to imitate the look of buttons. Search for it in the addons, it will give you even more features and control over the category menu Thank you very much for your help much appreciated :-) 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.