Thread: header_tpl.php

Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2006
    Location
    Australia
    Posts
    280
    Plugin Contributions
    0

    Default 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

    www.backyardcanvas.com/gardenshed
    :imagination:cogitation:realisation:
    www.chalbys.com

  2. #2
    Join Date
    Mar 2006
    Location
    Australia
    Posts
    280
    Plugin Contributions
    0

    Default 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:
    www.chalbys.com

  3. #3
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default 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

  4. #4
    Join Date
    Mar 2006
    Location
    Australia
    Posts
    280
    Plugin Contributions
    0

    Default Re: header_tpl.php

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

    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:
    www.chalbys.com

  5. #5
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default 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

 

 

Similar Threads

  1. Replies: 9
    Last Post: 11 Dec 2015, 11:35 PM
  2. v154 application/x-httpd-php html_header.php PHP script text
    By Parafanaylya in forum General Questions
    Replies: 3
    Last Post: 29 Aug 2015, 03:06 PM
  3. Replies: 4
    Last Post: 17 Jul 2015, 04:44 AM
  4. Linking Page_2.php, Page_3.php, Page_4.php In Footer
    By gws76 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 1 May 2007, 10:59 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg