Hi guys!
I search since many months, how to replace: text of categories or sub-categories by buttons ?
I don't found the code i need to replace or add in the CSS ?
Thanks for your help!
![]()
Hi guys!
I search since many months, how to replace: text of categories or sub-categories by buttons ?
I don't found the code i need to replace or add in the CSS ?
Thanks for your help!
![]()
Images for Titles in Free Addons does this.
This is assuming you are talking about the category/subcategory listing page. If you mean somewhere else, give us more information.
Last edited by gjh42; 10 Feb 2011 at 07:25 PM.
Hi,
perfect, do you think i don't need to install all modified files?
Just: category_row.php ?
thanks![]()
If you only want images for subcategory listings, you don't need the other pages' files.
Thanks
Do you think its possible to have clear or blank buttons and title of category is automatically write in color of my choice inside button ?
That would be "CSS buttons", which are a standard option in Zen Cart. I haven't used them myself, but there should be information on setting them up around here.
First, you would set Configuration > Layout Settings > CSS Buttons to Yes.
Of course, that is only for elements which are normally buttons. Your situation would not call for that, but for the very simple arrangement of having a background-image for the subcategory link and styling it in the stylesheet.
Last edited by gjh42; 11 Feb 2011 at 05:39 PM.
If you want to make the button backgrounds fit the width of the title, you would need to make a small addition to category_row.php to wrap another div around the link, and apply the "sliding doors" method (google for it).
Hi,
Where i can insert sub categories number in category_row.php for substitute images for text in certain locations ?
Thanks
Use Images for Titles. It will replace text with an image where you have named the image to match the category id (as described in the mod's readme), and leave the rest of the text as is.