Results 1 to 9 of 9
  1. #1
    Join Date
    Sep 2009
    Location
    Victoria
    Posts
    85
    Plugin Contributions
    0

    Default How to display an image on my home page?

    I am running Zen Cart 1.3.8.

    I would like to know how to add an image to my home page in the centre section.

    When I first installed Zen Cart (before making any changes) the home page had a zen cart image in the centre section.

    I removed it and now I can't remember what I did.

    I want to place an image under the welcome text but above my define pages text.

    Can any one tell me how I do this. I'm sure it's easy but I just can't remember.

    Thank you in advance. :-)

  2. #2
    Join Date
    Jul 2009
    Location
    Prague, Czech Republic
    Posts
    567
    Plugin Contributions
    0

    Default Re: How to display an image on my home page?

    Just add something like this code before your main text in Define Pages Editor (define_main_page.php), the image linking obviously to one you upload to your server

    HTML Code:
    <div align="center"><a href="http://www.zen-cart.com/index.php?main_page=page&id=16"><img src="http://www.zen-cart.com/forum/images/zc_gray/misc/big-book.png" width="605" border="0"></a></div>
    If you drop that code in as a demo it should give you a good idea what you need to change

  3. #3
    Join Date
    Sep 2009
    Location
    Victoria
    Posts
    85
    Plugin Contributions
    0

    Default Re: How to display an image on my home page?

    Thanks for the help.

    Coding is not my forte but I got there.

    Thanks again for the help. :-)

  4. #4
    Join Date
    Apr 2010
    Posts
    1
    Plugin Contributions
    0

    Default Re: How to display an image on my home page?

    twaddle is rite,
    just post the html link:
    <div align="center"><a href="http://www.zen-cart.com/index.php?main_page=page&id=16"><img src="http://www.zen-cart.com/forum/images/zc_gray/misc/big-book.png" width="605" border="0"></a></div>

    It'll work, sorry i needed help too so found out here and did it thanks to twaddle.

    Cheers.

    Khawari
    http://www.taurosmedia.com

  5. #5
    Join Date
    Sep 2009
    Location
    Victoria
    Posts
    85
    Plugin Contributions
    0

    Default Re: How to display an image on my home page?

    Quote Originally Posted by khawari View Post
    twaddle is rite,
    just post the html link:
    <div align="center"><a href="http://www.zen-cart.com/index.php?main_page=page&id=16"><img src="http://www.zen-cart.com/forum/images/zc_gray/misc/big-book.png" width="605" border="0"></a></div>
    I found that I had to play around with the width size in the code a bit but now it looks really good.

  6. #6
    Join Date
    Sep 2009
    Location
    Victoria
    Posts
    85
    Plugin Contributions
    0

    Default Re: How to display an image on my home page?

    Quote Originally Posted by Twaddle View Post
    HTML Code:
    <div align="center"><a href="http://www.zen-cart.com/index.php?main_page=page&id=16"><img src="http://www.zen-cart.com/forum/images/zc_gray/misc/big-book.png" width="605" border="0"></a></div>
    I moved my site so it was viable to the public and have lost my home page image.

    I've played around with the code a bit but can't work out how to get it to work again.

    website: www.passionsignite.com.au
    image name: grand_opening_web_poster_copy.jpg
    image location on server: public_html>images>banners

    What do I need to change to get this to work again?

  7. #7
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    20,974
    Plugin Contributions
    25

    Default Re: How to display an image on my home page?

    You were using an absolute URL, so when you moved your site the actual path to the image changed. It is always recommended to use relative URLs for content in your site. Also, you apparently want just an image here, not a link, so remove the link code.
    Code:
    <div class="homeImage"><img src="images/banners/grand_opening_web_poster_copy.jpg" /></div>

  8. #8
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    20,974
    Plugin Contributions
    25

    Default Re: How to display an image on my home page?

    Your particular problem was actually putting the /public_html/ in the path, but relative paths are still better, as they will automatically be appended to the correct base by Zen Cart.
    <img src="http://www.passionsignite.com.au/public_html/images/banners/grand_opening_web_poster_copy.jpg"

  9. #9
    Join Date
    Sep 2009
    Location
    Victoria
    Posts
    85
    Plugin Contributions
    0

    Default Re: How to display an image on my home page?

    Thank you for the information.

    It's working like a charm now.

    Coding is not my best subject. lol

    Thanks again....

 

 

Similar Threads

  1. Display Customer Name on Home Page
    By MTProTool.com in forum General Questions
    Replies: 4
    Last Post: 5 Jun 2009, 02:27 PM
  2. Display category image on home page?
    By moabxj01 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 6 Feb 2009, 10:06 PM
  3. Banner display only on home page
    By Nixonmedia in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 17 Dec 2007, 04:52 AM
  4. Can't display more than 1 product on home page
    By TrvlFox in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 3 Sep 2007, 12:21 AM
  5. home page display
    By ThePatch in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 3 Jul 2007, 02:21 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •