Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Sep 2006
    Location
    NYC
    Posts
    78
    Plugin Contributions
    0

    help question trying to change sidebox header w/image

    I'm trying to replace the sidebox headers with images and have implemented this with 1 header, Categories (which has been renamed to Products).

    The second header "Reviews" is not rendering, below is my code:

    My includes/languages/CUSTOM/english.php reads:

    Code:
    define('BOX_HEADING_REVIEWS', 'reviews_hdr.gif');
    and I have added in my includes/modules/sideboxes/CUSTOM/categories.php:

    Code:
    $title = zen_image($template->get_template_dir(BOX_HEADING_CATEGORIES, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . BOX_HEADING_REVIEWS);
        $title_link = false;
    but it's producing only the image name, HERE

    Can someone please help to enlighten me

  2. #2
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: trying to change sidebox header w/image


  3. #3
    Join Date
    Sep 2006
    Location
    NYC
    Posts
    78
    Plugin Contributions
    0

    Default Re: trying to change sidebox header w/image

    thanks for the reply Misty , very much appreciated. I followed the tutorial but somehow it's not working, will check out the thread you pointed to.

    thanks again, c.

  4. #4
    Join Date
    Sep 2006
    Location
    NYC
    Posts
    78
    Plugin Contributions
    0

    Default Re: trying to change sidebox header w/image

    I don't get this, I followed the tut and even tried styling it out:

    #reviewsHeading {
    background: url(../images/reviews_hdr.gif) no-repeat fixed #FDF48B;
    margin: 0em;
    padding: 0em;
    }

    and it doesn't work

  5. #5
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: trying to change sidebox header w/image

    Coding incorrect
    should be
    Code:
    #reviewsHeading {
    background-image: url(../images/reviews_hdr.gif);
    background-repeat:no-repeat;
    margin: 0em;
    padding: 0em;
    }

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

    Default Re: trying to change sidebox header w/image

    Actually, that shorthand background property is correctly coded, and is even a recommended way to do it where practical.

    You might want to look at the Image Titles mod, which takes care of the coding more efficiently and only requires you to load images named according to a system for whichever boxes you want to use them on.
    Last edited by gjh42; 23 Jan 2008 at 10:42 AM.

  7. #7
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: trying to change sidebox header w/image

    Actually, that shorthand background property is correctly coded, and is even a recommended way to do it where practical.
    So posters original css code should be working then if
    image path set correctly?

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

    Default Re: trying to change sidebox header w/image

    If all else is kosher, yes. I didn't look at whether the CSS will get applied where it is wanted, only that the property is correctly coded.

  9. #9
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: trying to change sidebox header w/image

    Thanks for clarifying..visited member's site,
    reviews heading looks to be working ok now.

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

    Default Re: trying to change sidebox header w/image

    The reviews heading is applied to the categories box. The reviews box still has the filename showing instead of the image.

    Tonkali, the method you are using will require you to edit a separate file for every sidebox; Image Titles does the edit in one file for left boxes and one for right boxes, and also accounts for the "[more]" after some box headings, which the cleanest method, specifying the whole image output in the define, doesn't do.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Trying to change the header image in only one category
    By strugglingnovice in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 19 Aug 2012, 08:59 PM
  2. Trying to add a image to a sidebox
    By topdiscs in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 21 Aug 2009, 12:14 PM
  3. How do I change the header image of blank sidebox?
    By saminc in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 29 Jul 2009, 08:53 AM
  4. Trying to change large header background image?
    By uruharacosplay in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 30 Apr 2009, 10:02 PM
  5. Trying to change "Important Links" Sidebox Header
    By goodbloom in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 17 Oct 2008, 08:55 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