Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / How to replace text sub categories by buttons ???

How to replace text sub categories by buttons ???

Views: 1,020

Results 1 to 9 of 9
10 Feb 2011, 3:46 PM
#1
triumph avatar

triumph

New Zenner

Join Date:
Feb 2010
Posts:
36
Plugin Contributions:
0

How to replace text sub categories by buttons ???

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!

:smile:

10 Feb 2011, 6:19 PM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: How to replace text sub categories by buttons ???

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.

11 Feb 2011, 3:17 PM
#3
triumph avatar

triumph

New Zenner

Join Date:
Feb 2010
Posts:
36
Plugin Contributions:
0

Re: How to replace text sub categories by buttons ???

Hi,

perfect, do you think i don't need to install all modified files?

Just: category_row.php ?

thanks :smile:

11 Feb 2011, 3:26 PM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: How to replace text sub categories by buttons ???

If you only want images for subcategory listings, you don't need the other pages' files.

11 Feb 2011, 4:29 PM
#5
triumph avatar

triumph

New Zenner

Join Date:
Feb 2010
Posts:
36
Plugin Contributions:
0

Re: How to replace text sub categories by buttons ???

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 ?

11 Feb 2011, 4:36 PM
#6
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: How to replace text sub categories by buttons ???

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.

11 Feb 2011, 4:43 PM
#7
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: How to replace text sub categories by buttons ???

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).

12 Feb 2011, 5:29 PM
#8
triumph avatar

triumph

New Zenner

Join Date:
Feb 2010
Posts:
36
Plugin Contributions:
0

Re: How to replace text sub categories by buttons ???

Hi,

Where i can insert sub categories number in category_row.php for substitute images for text in certain locations ?

Thanks

14 Feb 2011, 3:15 AM
#9
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: How to replace text sub categories by buttons ???

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.