If this is your first visit, check our documentation. To post, register or login.

header_tpl.php

Locked

Started by prellyan on 1 Sep 2006, 6:40 AM · Views: 939

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
1 Sep 2006, 6:40 AM
#1
prellyan avatar

prellyan

Zen Follower

Join Date:
Mar 2006
Location:
Australia
Posts:
268
Plugin Contributions:
0

header_tpl.php

Hey there,

I am trying to path some custom images into the header_tpl.php file.

I realised i was using absolute paths from the header_tpl.php for the graphics

is there an easy way to create the relative paths or is the only course of action to create another set of variables in the header.php file to draw from?

Thanks

https://www.backyardcanvas.com/gardenshed

:imagination:cogitation:realisation:
https://www.chalbys.com

1 Sep 2006, 7:07 AM
#2
prellyan avatar

prellyan

Zen Follower

Join Date:
Mar 2006
Location:
Australia
Posts:
268
Plugin Contributions:
0

Re: header_tpl.php

Yup.

Basically you need to create another set of variables for each image you want to insert then use the code that generates the logo and replace the HEADER_LOGO with your variable graphic

Cheers

:imagination:cogitation:realisation:
https://www.chalbys.com

1 Sep 2006, 11:06 AM
#3
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: header_tpl.php

If I understand what you have said...

The simple method is to place your images in your template_name/images file that are the same file type and same file name as the default ones. These will then be used in place of the default images.

Look in the /includes/templates/template_default/images folder for the default images and place you logo.gif and other images in the /includes/templates/your_template/images folder

Additional images can be indicated by url (../images/filename)

Zen-Venom Get Bitten

1 Sep 2006, 3:17 PM
#4
prellyan avatar

prellyan

Zen Follower

Join Date:
Mar 2006
Location:
Australia
Posts:
268
Plugin Contributions:
0

Re: header_tpl.php

yeah that is if you are just replacing images that are already coded into ZC.

https://www.backyardcanvas.com/gardenshed

the images in the top right corner (once i have changed the link code) are new images introduced into the ZC system and link back to the main part of the company website.

:imagination:cogitation:realisation:
https://www.chalbys.com

1 Sep 2006, 10:22 PM
#5
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: header_tpl.php

I am trying to path some custom images into the header_tpl.php file.This does not ask for links but only additional images. As you have found out, links are handled differently

Zen-Venom Get Bitten