Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2004
    Posts
    184
    Plugin Contributions
    0

    Default Add background image in Edit Category Description

    Hi!

    I am looking to add a background image to the Category description box - and then place text over the image something like this

    http://www.lemongrassmedia.com/images/bowel_001.jpg

    where the woman would be the background image and then I would add text as needed in the light areas.

    That way if I changed the text I wouldn't have to change the image etc.

    I tried using the code <body background="value"> but that made the whole page have the background image not just the category box area.

    I'm probably not explaining myself very well, but anyone know how to do it?

    If all else fails I can create a full image and use it with text on the image but wanted to see if I could do it this way first

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

    Default Re: Add background image in Edit Category Description

    You can do this using CSS and Zen Cart's per-category stylesheet feature.

    Create a file named like c_123.css (where 123 is your category id), with content like


    #indexProductListCatDescription {background: #aabbcc url(../images/yourcat123bg.gif); height: 120px;}

    Save in /includes/templates/your_template/css/, and save the image file in /includes/templates/your_template/images/.

 

 

Similar Threads

  1. Simple - add space between category image and description
    By secondnature in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 19 Jun 2011, 09:26 PM
  2. Background Tiles & Product Image Window Edit ?
    By rdcast in forum General Questions
    Replies: 3
    Last Post: 28 Feb 2010, 08:24 PM
  3. Add a product description deletes category description
    By dartmoorcf in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 15 Feb 2010, 08:36 PM
  4. add background image to a attribute then have that background image act as hyperlink
    By sike1234 in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 14 Nov 2008, 05:38 PM
  5. How to add or edit description?
    By nepton in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 31 Jul 2006, 07:41 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