Results 1 to 10 of 12

Hybrid View

  1. #1
    Join Date
    Feb 2005
    Posts
    202
    Plugin Contributions
    0

    Default Replacing Links with Images

    If I wanted to remove the text "Category", "Information" etc...

    My understanding is that I need to go to /languages/english.php and change this line:

    // categories box text in sideboxes/categories.php
    define('BOX_HEADING_CATEGORIES', 'Categories');

    to:

    // categories box text in sideboxes/categories.php
    define('BOX_HEADING_CATEGORIES', '<img src="../images/categories.gif">');

    I tried that but it just shows my image as broken. I am using the latest version of zen, classic, override system... my image is uploaded under my override folder under images...

    I had another question:
    Do I also need to copy the folder "languages" and add it to my template folder to use the override system????

    Thanks in advance!

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

    Default Re: Replacing Links with Images

    Second question first. Check the wiki here in the top nav bar and the override forum and the first/only sticky on overrides. For each dir that the classic dir exists in you can create a your_template dir that will receive inly the edited files that exist in this area. move to another dir and see the classis, then those files there can edited and placed in your own dir.

    For your other item, upload images to includes/templates/your_template/images

    and try this code:
    Code:
    define('BOX_HEADING_CATEGORIES', 'url(..images/categories.gif">');
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Feb 2005
    Posts
    202
    Plugin Contributions
    0

    Default Re: Replacing Links with Images

    Kobra,

    that does not work.. now instead of the broken image box, it shows this text with no image url(..images/categories.gif">

    Now, I see there is only 1 " should it be like this:

    define('BOX_HEADING_CATEGORIES', 'url(..images/"categories.gif">');

    Either way, I tried them both and it does not work...

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

    Default Re: Replacing Links with Images

    My

    Where did that "> come from??? sorry should be:
    Code:
    define('BOX_HEADING_CATEGORIES', 'url(..images/categories.gif)');
    Oh, now I see...I picked it up from your original post and just replaced the relative link info...I need to watch it.

    If this does not produce the image, also try loading the image it to the /images at the base of your Zen Cart install. I am relatively positive that Zen will look to the template image dir.
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Replacing Links with Images

    Put your new image in the templates/YOUR_TEMPLATE/images/ directory and use the correct relative path: includes/templates/YOUR_TEMPLATE/images/YOUR_IMAGE.gif

  6. #6
    Join Date
    Feb 2005
    Posts
    202
    Plugin Contributions
    0

    Default Re: Replacing Links with Images

    I got it to work on another site awhile back, but for the life of me, I just cant remember how I did it... I tried what you said and it just shows the text on the page in place of the "word category", it shows url(images....) no image or red broken image box...

    I tried reuploading the image like you said, but it is not regonizing it in the code, there is something missing...

  7. #7
    Join Date
    Feb 2005
    Posts
    202
    Plugin Contributions
    0

    Default Re: Replacing Links with Images

    ok so all i need to do is this:

    define('BOX_HEADING_CATEGORIES', 'url(includes/templates/MY_TEMPLATE/images/categories.gif)');

 

 

Similar Threads

  1. v151 replacing images with my own
    By cyberbaffled in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 2 Jul 2013, 05:57 AM
  2. Replacing buttons with text links only
    By weirdorecords in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 1 Jun 2010, 07:27 AM
  3. Replacing HEADING_TITLE with Images
    By Radish in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 15 Feb 2009, 12:30 PM
  4. Replacing category text with images
    By d'Anjou in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 8 Apr 2008, 10:45 AM
  5. Replacing category links with images
    By MCanes in forum General Questions
    Replies: 13
    Last Post: 26 Jun 2007, 05:13 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