Zen Cart Logo
Forums / General Questions / .jpg image on define_main page

.jpg image on define_main page

Locked

Views: 756

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
16 Jul 2008, 1:08 PM
#1
wwwursa avatar

wwwursa

Zen Follower

Join Date:
Oct 2007
Posts:
163
Plugin Contributions:
0

.jpg image on define_main page

Is there a way of adding a .jpg image to the define_main_page.php page? Triyed simply to copy/paste but it did not work.

Thanks for your help

16 Jul 2008, 1:37 PM
#2
0be1 avatar

0be1

Totally Zenned

Join Date:
Sep 2004
Location:
Murfreesboro, TN
Posts:
479
Plugin Contributions:
0

Re: .jpg image on define_main page

wwwursa;

Log into your admin part of your site, highlight tools on the menu choose define pages editor, choose define_main_page.php from the list. In the upper right hand corner make sure you are using some sort of editor (htmlarea is installed by default) click on the <> in the editor and switch to source mode and paste your path to your file i.e. /images/filename.jpg etc. you can also do area maps and a href's as well.

I hope this helps :smile:

Sincerely,

0be1

16 Jul 2008, 1:39 PM
#3
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: .jpg image on define_main page

You need to save the image in your template's /images/ folder
(/includes/templates/your_template/images/yourimg.jpg) and then insert an HTML ```html
<img src="http://www.your_site.com/includes/templates/your_template/images/yourimg.jpg">


You can make the location portable so it works the same on a development server and the live server; change the http://www.your_site.com/ to
<?php echo HTTP_SERVER . DIR_WS_CATALOG; ?>
```php
<img src="<?php echo HTTP_SERVER . DIR_WS_CATALOG; ?>includes/templates/your_template/images/yourimg.jpg">