WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => Templates, Menus & Design => Topic started by: itsnick on October 20, 2008, 06:56:50 PM

Title: Images don't display on additional pages
Post by: itsnick on October 20, 2008, 06:56:50 PM
I created a website baker site, edited a template and added my own images.  When I first go to my website everything looks correct, I.E. Logo is there and some images in the body are in the correct place.  When I click on the additional pages that I made in the website baker administration, none of my images are displaying except for my background image.

I have tried placing these images in different folders, but still no luck.  Any help is greatly appreciated.
Title: Re: Images don't display on additional pages
Post by: johnp on October 20, 2008, 08:37:13 PM
Hello itsnick

I would like to welcome you to website baker.

You should have a look at the following

Template Functions (http://help.WebsiteBaker.org/pages/en/advanced-docu/designer-guide/adding-template-functions.php)

Scroll through it will guide you through creating a template

But to help you out quickly

Replace
Code: [Select]
<img src="/img/mypic.gif" alt="mypic" />
with
Code: [Select]
<img src="<?php echo TEMPLATE_DIR;?>/img/mypic.gif" alt="mypic" />
This should help point you in the direction needed

JP