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
Views: 756
Zen Follower
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
Totally Zenned
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
Black Belt
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">
Tell staff why this post should be reviewed.