Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Oct 2008
    Location
    newcastle upon tyne (UK)
    Posts
    876
    Plugin Contributions
    2

    Default Adding links to the header & footer

    Hi everyone,,, another simple question from me but I cant find the answer in the BoK or forums.

    im embarrassed to ask but..

    how do I add links to my header and footer bar?

    for instance, the ‘home’ link is already in both bars but how can I add a link for example ‘find us’ or ‘contact us’ in the header and links relating to T & C and legal stuffs in the footer?

    I have included a screen dump to illustrate..

    p.s. the site is off line at the mo so I cant give a live demo
    Last edited by kuroi; 26 Aug 2009 at 07:11 PM. Reason: remove link to img on site that requires http authentication

  2. #2
    Join Date
    May 2008
    Location
    UK
    Posts
    85
    Plugin Contributions
    0

    Default Re: Adding links to the header & footer

    To add links/text on header go to: includes/languages/english/classic/header.php

    To add links/text on footer go to: includes/languages/english/classic/english.php

  3. #3
    Join Date
    Oct 2008
    Location
    newcastle upon tyne (UK)
    Posts
    876
    Plugin Contributions
    2

    Default Re: Adding links to the header & footer

    hi,

    i thought about that.. but thought there would be an easier way to do it.. i found that easier way via EZ-Pages but it raises one more question..

    ezpages allows for the creation of a sidebox, and it places the links in the footer without the need to amend code and fanny about with files...

    BUT.. it doesn’t add the links to the header bar, instead it created an additional header bar.. which i dont want... I want the links in the normal header bar where the search & ‘home’ link is..

    is that just the way zencart works?...

    i have attached a screen dump to illiterate (found at bottom of message)

    and what is the work around on this?.. create the pages via ezpages and then amend the

    includes/languages/english/classic/header.php

    file?

    Furthermore, as the ezpages are created & stored in the database, what are peoples opinions on the best way to add header/footer links.. for situations like backing up, mirroring the sever or easy sever-host migration

    ezpages
    Or
    Direct header.php / footer.php hacks
    Last edited by kuroi; 26 Aug 2009 at 07:10 PM. Reason: remove link to external img on site that needs http auth

  4. #4
    Join Date
    Oct 2008
    Location
    newcastle upon tyne (UK)
    Posts
    876
    Plugin Contributions
    2

    Default header links via EZPAGES not working right

    hi,

    basically i want to add the EZPAGES links to the header bar, but im not having much success... i did ask a similar question in a different thread but i feel it is posted in the wrong place... anyway, my problem is...

    ezpages allows for the creation of a sidebox, and it places the links in the footer without the need to amend code and fanny about with files... (eg includes/languages/english/classic/header.php)

    BUT.. it doesn’t add the links to the header bar, instead it created an additional header bar.. which i dont want... I want the links in the normal header bar where the search & ‘home’ link is..

    is that just the way zencart works?...

    i have attached a screen dump to illiterate (found at bottom of message)

    what is the work around on this?.. create the pages via ezpages and then amend the

    includes/languages/english/classic/header.php

    file?


    Furthermore, as the ezpages are created & stored in the database, what are peoples opinions on the best way to add header/footer links.. for situations like backing up, mirroring the sever or easy sever-host migration

    ezpages
    Or
    Direct header.php / footer.php hacks

    please help..
    Last edited by kuroi; 26 Aug 2009 at 07:09 PM. Reason: remove link to external img on site that needs http auth

  5. #5
    Join Date
    Mar 2006
    Location
    Fresno, California
    Posts
    620
    Plugin Contributions
    0

    Default Re: Adding links to the header & footer

    I always just edit the header and footer files...works for me!

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

    Default Re: header links via EZPAGES not working right

    what is the work around on this?.. create the pages via ezpages and then amend the includes/languages/english/classic/header.php file?
    Yes, this is what you need to do....
    Seek the code block/div that creates the header links and move the code into the navMain div - - you will eliminate the other div and most likely run out of space as other items appear in navMain as one logs in and add items to their cart
    Zen-Venom Get Bitten

  7. #7
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: Adding links to the header & footer

    https://www.zen-cart.com/tutorials/i...hp?article=234

    If you modify the files in the /classic folders, all your changes will be lost with the next upgrade/update.
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

  8. #8
    Join Date
    Oct 2008
    Location
    newcastle upon tyne (UK)
    Posts
    876
    Plugin Contributions
    2

    Default Re: header links via EZPAGES not working right

    sorry.. how do i do that?...

    i have limited coding knowledge or skill...

    i followed the instructions on the link for article 234 and it worked, i added a link in the main header bar for the contact us page...

    but what i want to do is set it up to automatically add the ezpages links in the main header bar (red) and not create the additional header bar (yellow)

    what what folders/files do i need to look in?
    what code do i need to copy from the ezpage section and where do i put it in the includes -> templates -> CUSTOM -> common -> tpl_header.php file

    or am i not making much sense?

  9. #9
    Join Date
    Oct 2008
    Location
    newcastle upon tyne (UK)
    Posts
    876
    Plugin Contributions
    2

    Default Re: Adding links to the header & footer

    sorry..

    i have limited coding knowledge or skill...

    i followed the instructions on the link for article 234 and it worked, i added a link in the main header bar for the contact us page...

    but what i want to do is set it up to automatically add the ezpages links in the main header bar (red) and not create the additional header bar (yellow)

    what what folders/files do i need to look in?
    what code do i need to copy from the ezpage section and where do i put it in the includes -> templates -> CUSTOM -> common -> tpl_header.php file

    or am i not making much sense?

  10. #10
    Join Date
    Jun 2003
    Posts
    33,720
    Plugin Contributions
    0

    Default Re: Adding links to the header & footer

    Moderator's note: The 2 threads on the same subject have been merged.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. How to change links at the top of the page & in the footer
    By sc436 in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 31 Jan 2011, 08:47 PM
  2. Questions about adding text & links to footer
    By cslakans in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 5 Dec 2009, 02:01 PM
  3. Header & Footer Have Shifted & There's A Double Green Bar At The Top
    By yonside in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 24 Jan 2008, 08:38 PM
  4. Adding links to the footer
    By pb4 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 28 Nov 2007, 06:57 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