Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2006
    Posts
    13
    Plugin Contributions
    0

    Adding Images to custom template

    Hello,

    I was wondering if anyone could give me some hints for things I need to do to add images to a customized template that I am editing but did NOT create.

    I have been trying to add images but they will not display. However, other attributes such as the images title will display.

    I have been trying to place them within this tag:
    <div id="todaysEventsHeading">

    by changing the "corner-ur.gif" attribute of the following code which does display the proper image:
    <?php echo zen_image(DIR_WS_TEMPLATE.'images/corner-ur.gif' , '', '', '', 'class="box_corner_ur"'); ?>

    The odd thing is, if I change the image contained within "corner-ur.gif", the image will change on the screen. I can not seem to figure out, however, how to display an image drawn from a different file.


    So, just to be clear, I know that line of code is showing an image, and I know where the image it is showing is located. However, when I try to edit it to show different images by changing the file name... It will not show the image, but it will show the Title of that image.



    Any suggestions would be very appreciated.

    Thank you in advance,
    Pat
    Last edited by pvon34; 29 Sep 2006 at 08:08 PM.

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

    Default Re: Adding Images to custom template

    "corner-ur.gif" is not a file or image that is part of the ZenCart distribution. This must be from a template that you are using. Trying to determine what they have done is difficult. You might sontact the template provider.
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Sep 2006
    Posts
    13
    Plugin Contributions
    0

    Default Re: Adding Images to custom template

    It was created by someone that I used to work with that no longer works for our organization, so I won't be able to contact them.

    I know that image is not part of the distribution, but perhaps there is something about the way the templating system is set up (file structure) that could be the problem. I am just not sure.

    Thank you,
    Pat

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

    Default Re: Adding Images to custom template

    To change the image name you have to change what is being called.

    Change -

    corner-ur.gif'

    to

    MY_IMAGE.gif

    in -

    <?php echo zen_image(DIR_WS_TEMPLATE.'images/corner-ur.gif' , '', '', '', 'class="box_corner_ur"'); ?>

  5. #5
    Join Date
    Sep 2006
    Posts
    13
    Plugin Contributions
    0

    Default Re: Adding Images to custom template

    That has not worked. The strange thing about this is that if I edit the actual picture corner-ur.gif the changes the new image will be shown, however if I edit the file names as you are suggesting it will show no other file.

    Also, if i just echo HTML code like "<img src="holder.gif" alt="IMAGE HOLDER">" the image will also not show up. I have a feeling there it has something to do with the header or perhaps something with how the file structures are set up with the zen cart package. Let me know if you have any more suggestions.

    Thank you again,
    Pat

 

 

Similar Threads

  1. v150 Broken images custom template
    By PaperRox in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 21 Apr 2012, 07:31 PM
  2. Display Cart After Adding Product with custom template
    By bazfr in forum Addon Templates
    Replies: 1
    Last Post: 3 Aug 2008, 04:31 AM
  3. Adding text/images, custom pages...
    By acdir in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 16 Nov 2006, 10:14 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