Forums / Templates, Stylesheets, Page Layout / Display image on home page

Display image on home page

Locked

Views: 1,362

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
15 Oct 2010, 6:03 PM
#1
kevin_a avatar

kevin_a

Zen Follower

Join Date:
Mar 2007
Location:
Worcester UK
Posts:
142
Plugin Contributions:
0

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

15 Oct 2010, 6:22 PM
#2
mikestaps avatar

mikestaps

Zen Follower

Join Date:
Aug 2010
Location:
Grand Blanc, MI
Posts:
305
Plugin Contributions:
1

Re: Display image on home page

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

15 Oct 2010, 6:52 PM
#4
mikestaps avatar

mikestaps

Zen Follower

Join Date:
Aug 2010
Location:
Grand Blanc, MI
Posts:
305
Plugin Contributions:
1

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: ```
<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.
15 Oct 2010, 7:17 PM
#5
kevin_a avatar

kevin_a

Zen Follower

Join Date:
Mar 2007
Location:
Worcester UK
Posts:
142
Plugin Contributions:
0

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

15 Oct 2010, 7:26 PM
#6
mikestaps avatar

mikestaps

Zen Follower

Join Date:
Aug 2010
Location:
Grand Blanc, MI
Posts:
305
Plugin Contributions:
1

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.

15 Oct 2010, 7:28 PM
#7
mikestaps avatar

mikestaps

Zen Follower

Join Date:
Aug 2010
Location:
Grand Blanc, MI
Posts:
305
Plugin Contributions:
1

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.

15 Oct 2010, 7:34 PM
#8
kevin_a avatar

kevin_a

Zen Follower

Join Date:
Mar 2007
Location:
Worcester UK
Posts:
142
Plugin Contributions:
0

Re: Display image on home page

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

kevin_a

16 Oct 2010, 8:22 AM
#9
kevin_a avatar

kevin_a

Zen Follower

Join Date:
Mar 2007
Location:
Worcester UK
Posts:
142
Plugin Contributions:
0

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