Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2007
    Posts
    236
    Plugin Contributions
    0

    Default Replace the area called Category Tabs with Image

    The subject probably says it all....

    My client would like a custom image in the bar that holds the Category Tabs. I'm a child of HTML so I have tried to do this without success. What, in which file, will I edit to insert an image or image table to display instead of the cattabbs area.

  2. #2
    Join Date
    Jun 2005
    Location
    Cheney WA
    Posts
    1,134
    Plugin Contributions
    0

    Default Re: Replace the area called Category Tabs with Image

    You can do it with CSS.

    Find your /includes/templates/templatefolder/css/stylesheet.css
    Copy it and paste it one level up as your backup.

    Search for the "#navCatTabs ul li a" class, no parenthesis.
    It will be nested and look something like this.

    Code:
    #navMain ul li a, #navSupp ul li a, #navCatTabs ul li a {
        text-decoration: none;
        padding: 0em 0.5em;
        margin: 0;
        color: #ffffff;
        }
    Cut #navCatTabs ul li a and paste it one line below the }

    Now you want to add some CSS buttons to the mix. Do you have the button image made? I'm going to call it "button.jpg"

    Add the following to your code and never use the tab button to move the cursor in place. Space bar will get you there.

    Code:
    #navCatTabs ul li a {
       background-image: button.jpg
       }
    You may want to add a hover to that, which is the same image with a border, or a differant cover. A third version of the same image can be used if you want a visited link.

    Just google css tutorials and you'll find more about it.

  3. #3
    Join Date
    Jan 2007
    Posts
    236
    Plugin Contributions
    0

    Default Re: Replace the area called Category Tabs with Image

    I think you were assuming that I wanted to leave the category lists and make them buttons. I just wanted to put an image in the place of the category tabs row.

    Nevertheless, for some reason I figured out a fix. I edited the tpl_header.php and removed the <optional category tabs display> section and replaced it with:

    Code:
     
    <!--bof-image-replacement display-->
      <table width="750" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td> <img src="/zen-cart/images/top_ribbon_banner.jpg" width="750" height="66"></td>
      </tr>
    </table>
    <!--eof-image-replacement display-->
    see here

    Thanks for the reply

    I'm comfortable with html

 

 

Similar Threads

  1. Replies: 2
    Last Post: 30 Jul 2014, 11:58 AM
  2. How to Customize Category Tabs with Image Buttons?
    By BlackOrchidCouture in forum Templates, Stylesheets, Page Layout
    Replies: 17
    Last Post: 24 Jul 2010, 05:45 PM
  3. Can i replace the word "Categories" in the category box with an image?
    By GMCto in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 18 Feb 2010, 04:56 PM
  4. How to replace category/product name with image?
    By Rotkale in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 19 Dec 2006, 03:59 PM

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