Page 1 of 3 123 LastLast
Results 1 to 10 of 27
  1. #1
    Join Date
    Jul 2006
    Location
    Southern California
    Posts
    109
    Plugin Contributions
    0

    help question Trouble changing sidebox title to an image

    I followed this tutorial: https://www.zen-cart.com/tutorials/i...hp?article=135
    I did exactly what it says but I'm getting a broken image for my title.

    This is my shop: http://gleefulthings.com/shop/

    my english.php file says:

    Code:
    // categories box text in sideboxes/categories.php
      define('BOX_HEADING_CATEGORIES', 'shop.jpg');
    and my categories.php file says exactly what the tutorial said.

    I'm confused

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

    Default Re: Trouble changing sidebox title to an image

    Did you also alter stylesheet of current template,
    as per tutorial.

  3. #3
    Join Date
    Jul 2006
    Location
    Southern California
    Posts
    109
    Plugin Contributions
    0

    Default Re: Trouble changing sidebox title to an image

    No because I thought that was just to change the background that's behind the image/text.

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

    Default Re: Trouble changing sidebox title to an image

    Quote Originally Posted by julieoolie View Post
    No because I thought that was just to change the background that's behind the image/text.
    Try changing stylesheet as per tutorial

  5. #5
    Join Date
    Jul 2006
    Location
    Southern California
    Posts
    109
    Plugin Contributions
    0

    Default Re: Trouble changing sidebox title to an image

    I don't really understand what I'm supposed to put there. I don't want a background image on them.

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

    Default Re: Trouble changing sidebox title to an image

    visited site
    path to missing image given as
    /shop/includes/templates/template_default/images/shop.jpg
    but you are using template
    /templates/gleefulthings/

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

    Default Re: Trouble changing sidebox title to an image

    That would make a difference...

    The tutorial actually gives a more complicated method of doing this. It requires editing a PHP file for every sidebox.
    It is possible to specify the whole image replacement in the define without altering any other files - I don't have the exact format for this at hand, but it has been posted on the forum.

    Or, you could install Image Titles, which takes care of the coding for sidebox titles in just a couple of files, and will apply to any sidebox where you save a correctly-named image in /your_template/buttons/english/. It also accounts for the [more] addition to some headers, which I believe the direct define method can't account for.
    Last edited by gjh42; 3 Feb 2008 at 08:11 AM.

  8. #8
    Join Date
    Jul 2006
    Location
    Southern California
    Posts
    109
    Plugin Contributions
    0

    Default Re: Trouble changing sidebox title to an image

    Quote Originally Posted by misty View Post
    visited site
    path to missing image given as
    /shop/includes/templates/template_default/images/shop.jpg
    but you are using template
    /templates/gleefulthings/
    I'm not sure how to change this. I just told it shop.jpg.

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

    Default Re: Trouble changing sidebox title to an image

    Are you sure you followed the file editing instructions exactly?
    in includes/modules/sideboxes/CUSTOM/categories.php Find this:

    $title = BOX_HEADING_CATEGORIES;

    and change it to:

    $title = zen_image($template->get_template_dir(BOX_HEADING_CATEGORIES, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . BOX_HEADING_CATEGORIES, HEADER_ALT_TEXT);
    If you want to do more than one or two headings, you would be best off with another method than the one you are trying.

  10. #10
    Join Date
    Jul 2006
    Location
    Southern California
    Posts
    109
    Plugin Contributions
    0

    Default Re: Trouble changing sidebox title to an image

    I want to change all my headings. What's the easiest way to do this? I'm not all that familiar with zencart, I just found this method in the tutorials and assumed it was the only way.

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. changing ezpages sidebox title
    By troymation in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 24 Nov 2011, 02:31 PM
  2. Having much trouble changing the title text of my site.
    By blossomandbe in forum General Questions
    Replies: 1
    Last Post: 25 Mar 2011, 05:38 AM
  3. Changing Title of ezpages sidebox
    By standnbang in forum Basic Configuration
    Replies: 3
    Last Post: 10 Jan 2011, 08:18 PM
  4. Changing the Category Title in Sidebox
    By sjbmaine in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 4 Nov 2008, 05:56 PM
  5. Changing sidebox title fonts
    By livingstons in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 25 Apr 2008, 07:16 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