Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Feb 2009
    Posts
    419
    Plugin Contributions
    0

    Default Category bg button image - where to place?

    Sorry for this surely simple silly question ...

    But am needing to place a simple black button image as the background to the categories, exactly like on their current xcart store: http://www.theironhorseman.com/motorcycle-gear/

    Just need to put the image as a background and then center the category name text correctly ....

    Sorry for the simple question, but am fighting a terrible headache for 2 days and am just getting frustrated over something I know is simple.

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Category bg button image - where to place?

    Put the black button image (menu_button.jpg) into your template's images folder. includes/templates/YOUR-TEMPLATE/images

    Then, in FIREFOX browser with web developer add-on, play around with the following after sticking it to the very bottom of your stylesheet:

    The default display for the category links is INLINE, so you're going to need to change this to "block".

    .category-top {background-image: url(../images/menu_button.jpg); display: block; line-height: 40px} (maybe 44px).

    NB: There may be other CSS edits too...
    20 years a Zencart User

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

    Default Re: Category bg button image - where to place?

    And after changing the links from inline to block display, you will need to remove a few <br /> tags from /includes/templates/your_template/sideboxes/tpl_categories.php.

    The breaks are necessary to keep the inline links on separate lines, but cause an extra space with block display.

  4. #4
    Join Date
    Feb 2009
    Posts
    419
    Plugin Contributions
    0

    Default Re: Category bg button image - where to place?

    Thanks so much for your help you two.

    Will attempt tomorrow - as I hope this headache will finally take a hike.

  5. #5
    Join Date
    Feb 2009
    Posts
    419
    Plugin Contributions
    0

    Default Re: Category bg button image - where to place?

    Either I've done something wrong, or I'm missing something ...

    There was only one <br /> within the categories section of the
    /includes/templates/your_template/sideboxes/tpl_categories.php

    Can't seem to get the font to show white on the buttons ... and I know several of the category names will need to be on two-lines ...

  6. #6
    Join Date
    Feb 2009
    Posts
    419
    Plugin Contributions
    0

    Default Re: Category bg button image - where to place?

    AND ... how do I get the sub-categories to stack, indent slightly, and line up nicely under the selected parent category button ?

  7. #7
    Join Date
    Feb 2009
    Posts
    419
    Plugin Contributions
    0

    Default Re: Category bg button image - where to place?

    ack! It won't do a white font ...

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

    Default Re: Category bg button image - where to place?

    We really need to see the site live to answer these questions accurately. A white font is easy if you are putting the property in the right place.

  9. #9
    Join Date
    Feb 2009
    Posts
    419
    Plugin Contributions
    0

    Default Re: Category bg button image - where to place?

    Sorry, had displayed earlier:

    http://www.theironhorseman.com/motorcycle-gear = Xcart site

    http://www.theironhorseman.com/motorcycle-store = Zencart site


    We've been transferring everything from the xcart to the zencart, and once done, will be dumping the xcart.

  10. #10
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: Category bg button image - where to place?

    Try this for starters:

    a.category-top {color: #ffffff;}


    (If you need a good tutorial on CSS, go to www.w3schools.com).

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 Buy Now button in place of "... more info" in a Category contents listing
    By DougC in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 24 Oct 2013, 06:50 PM
  2. v139h Can I place a non product image on a category page?
    By traytray in forum General Questions
    Replies: 11
    Last Post: 3 Jul 2013, 01:02 AM
  3. Book mark button/social networking where to place?
    By pasb in forum General Questions
    Replies: 1
    Last Post: 15 Jul 2009, 08:28 PM
  4. Image maps on shop index page--where to place html code?
    By amieco in forum General Questions
    Replies: 1
    Last Post: 5 Jul 2007, 04:06 PM
  5. Can I put an image in place of category links on main?
    By Maxx409 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 8 Dec 2006, 01:10 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