Results 1 to 8 of 8
  1. #1
    Join Date
    Oct 2004
    Posts
    50
    Plugin Contributions
    0

    Default Replacing a Side Box Header with a Background

    How can I change my sidebox headers to have a background instead of a color?

    http://www.diamondbackengines.com/es...ain_page=index

  2. #2
    Join Date
    Mar 2006
    Posts
    53
    Plugin Contributions
    0

    Default Re: Replacing a Side Box Header with a Background

    Go to:
    includes\templates\yourtemplate\stylesheet.css

    and find:

    .leftboxheading, .rightboxheading, .centerboxheading, .singleboxheading {

    Should be around line 775 ish

    Add:
    background-image: url(../images/yourimageheader.gif);

    also add box footer by going to:

    .leftboxfooter, .rightboxfooter, .centerboxfooter, .singleboxfooter {

    Add:
    background-image: url(../images/yourimagefooter.gif);

  3. #3
    Join Date
    Apr 2006
    Location
    Chiang Mai
    Posts
    405
    Plugin Contributions
    0

    Default Re: Replacing a Side Box Header with a Background

    you might try playing with replacing tile_back.jpg with an image...

    you can also replace the sidebox header text with images in define...

    just hints without explanations

  4. #4
    Join Date
    Apr 2006
    Location
    Chiang Mai
    Posts
    405
    Plugin Contributions
    0

    Default Re: Replacing a Side Box Header with a Background

    since I appreciate thorough explanations thought I'd offer this tip:

    includes/languages/english.php

    for example on my site I changed:
    define('BOX_HEADING_FEATURED_PRODUCTS', 'Featured');

    to

    define('BOX_HEADING_FEATURED_PRODUCTS', '<img src="/images/sideboxheader_featured.jpg" alt="Featured" />');

    the html transitional test and error checker wants the alt=" "

    maybe not exactly what you were looking for but something to play with

  5. #5
    Join Date
    May 2006
    Posts
    725
    Plugin Contributions
    0

    Default Re: Replacing a Side Box Header with a Background

    Wasana,

    This doesn't work for me. Do you only need to edit english.php or you have to edit somethinf else?

  6. #6
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Replacing a Side Box Header with a Background

    Berserker,
    This doesn't work for me. Do you only need to edit english.php or you have to edit somethinf else?
    As there were about 4 things outlined this statement does not really tell us mush about what didn't work.

    If you are referring to the original post and images; a bit was left out of the explanation, and that is to have the area rendered as an image you must also have the image that you want first, and you must also load it to the location that you are going to call it from. In this instance it would be "/images/your_image_name.jpg(gif)" alt="Your_Description"

    /image is the main image directory at the root or directly under the subdirectory that you have Zen Cart installed at.
    Zen-Venom Get Bitten

  7. #7
    Join Date
    May 2006
    Posts
    725
    Plugin Contributions
    0

    Default Re: Replacing a Side Box Header with a Background

    kobra,

    hello again..what i mean is that when you change the sidebox header from just a color to an image, do you only edit the English.php or you edit something else like the main sidebox file (i.e categories, information etc).

  8. #8
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Replacing a Side Box Header with a Background

    Post your code that you are entering into the english.php file and post a url for faster assistance.
    Zen-Venom Get Bitten

 

 

Similar Threads

  1. v150 Replace side box header image and background of box and add footer
    By clint6998 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 23 Nov 2012, 11:55 PM
  2. Replies: 2
    Last Post: 13 Jun 2011, 04:22 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