Results 1 to 9 of 9
  1. #1
    Join Date
    Mar 2007
    Location
    Worcester UK
    Posts
    138
    Plugin Contributions
    0

    Default Display image on home page

    I wish to display an image on the home page.
    I have put the path into the Define Pages Editor, define-main-page.php, and it shows on the preview.
    However, on the live shop, all that displays is the html link, not the picture.
    What am i doing wrong?
    kevin_a

  2. #2
    Join Date
    Aug 2010
    Location
    Hartland, MI
    Posts
    303
    Plugin Contributions
    3

    Default Re: Display image on home page

    A link to the store so we can see the problem would be helpful...

  3. #3
    Join Date
    Mar 2007
    Location
    Worcester UK
    Posts
    138
    Plugin Contributions
    0

    Default Re: Display image on home page

    kevin_a

  4. #4
    Join Date
    Aug 2010
    Location
    Hartland, MI
    Posts
    303
    Plugin Contributions
    3

    Default Re: Display image on home page

    Try using an relative link as opposed to an absolute one.

    If you look at my store: https://sicassracing.com/store

    I placed the photo with this code:
    Code:
    <img src="images/mainlogo.gif" alt="sicassracing.com" width="564" height="492" align="middle" />
    The photo would then be placed in the main images folder inside your store directory.
    Last edited by mikestaps; 15 Oct 2010 at 07:53 PM. Reason: Add where to place photo

  5. #5
    Join Date
    Mar 2007
    Location
    Worcester UK
    Posts
    138
    Plugin Contributions
    0

    Default Re: Display image on home page

    I have put the image into the folder 'public_html/images',

    and the following in Define Pages Editor, define-main-page.php

    <img src="images/index.jpg" width="564" height="492" />

    but still no joy
    kevin_a

  6. #6
    Join Date
    Aug 2010
    Location
    Hartland, MI
    Posts
    303
    Plugin Contributions
    3

    Default Re: Display image on home page

    Sorry man that was the extent of the help I could give you... It may be because you are using a shared SSL. I had a ton of issues during setup while using a shared SSL. Plus your own SSL offers customers the security of your URL in the address bar...

    Possibly try putting the file in your "store"/images directory.

  7. #7
    Join Date
    Aug 2010
    Location
    Hartland, MI
    Posts
    303
    Plugin Contributions
    3

    Default Re: Display image on home page

    This is the directory for my image:
    /public_html/store/images
    with /public_html/store/ being the directory where all of my store files are.

  8. #8
    Join Date
    Mar 2007
    Location
    Worcester UK
    Posts
    138
    Plugin Contributions
    0

    Default Re: Display image on home page

    I do not have an intermediate folder on my server files, its just public_html/images
    kevin_a

  9. #9
    Join Date
    Mar 2007
    Location
    Worcester UK
    Posts
    138
    Plugin Contributions
    0

    Default Re: Display image on home page

    OK
    For anyone else struggling with this!..
    the image IS called for in define-main-pages.php, but the link did NOT work when i put it in using the Stockroom Define Pages Editor .
    However, when I edited the define-main-pages.php locally, using the SAME code that failed in the Stockroom editor, and uploaded the define-main-pages.php to the server (preferably in an override folder) as in
    includes/languages/english/html_includes/mytemplate/define_main_page.php

    the image display then worked fine.

    Theres something a bit fishy about the Stockroom Define Pages Editor that I do not understand, but I that will have to remain a mystery to me, unless anyone picks this up and can explain it.
    kevin_a

 

 

Similar Threads

  1. v150 Display image in the home page
    By kman55 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 4 Feb 2012, 03:20 AM
  2. How to display an image on my home page?
    By Kayz in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 20 Apr 2010, 07:01 PM
  3. Display category image on home page?
    By moabxj01 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 6 Feb 2009, 10:06 PM
  4. How to display my desire page on home page??
    By lastpirate007 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 26 Sep 2007, 11:31 AM
  5. home page display
    By ThePatch in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 3 Jul 2007, 02:21 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