Results 1 to 9 of 9
  1. #1
    Join Date
    Feb 2010
    Posts
    35
    Plugin Contributions
    0

    Default 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!


  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default 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.
    Last edited by gjh42; 10 Feb 2011 at 07:25 PM.

  3. #3
    Join Date
    Feb 2010
    Posts
    35
    Plugin Contributions
    0

    Default 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

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

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

  5. #5
    Join Date
    Feb 2010
    Posts
    35
    Plugin Contributions
    0

    Default 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 ?

  6. #6
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default 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.
    Last edited by gjh42; 11 Feb 2011 at 05:39 PM.

  7. #7
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

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

  8. #8
    Join Date
    Feb 2010
    Posts
    35
    Plugin Contributions
    0

    Default 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

  9. #9
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

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

 

 

Similar Threads

  1. How to replace Header menu with static buttons?
    By perfumbg in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 13 Nov 2010, 06:50 PM
  2. Want to replace default buttons with my buttons
    By vishalon in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 21 Jan 2010, 05:52 PM
  3. How to remove text from sub categories main page???
    By hcd888 in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 15 Jul 2009, 06:03 PM
  4. Replace template text with buttons
    By gamenano in forum General Questions
    Replies: 0
    Last Post: 6 May 2009, 04:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg