Page 1 of 2 12 LastLast
Results 1 to 10 of 19
  1. #1
    Join Date
    Jan 2009
    Posts
    50
    Plugin Contributions
    0

    help question adding a page to the header

    Hello

    I searched the forum for my issue or a similar one but I didnt find it

    I want to add other links to the header, I did following this article:

    Option 1

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

    but I didnt know where to define: zen_href_link(FILENAME_my_new_page....

    I created the page define_my_new_page in the directory : includes/languages/french/html_includes

    now the links appear but when I click on it, it leads to a 404

    I spent more than 2 days in this issue

    Your help is much appreciated
    ...........Being zenned............

  2. #2
    Join Date
    Jan 2009
    Posts
    50
    Plugin Contributions
    0

    Default Re: adding a page to the header

    hmm

    No clue?
    ...........Being zenned............

  3. #3
    Join Date
    Jan 2009
    Posts
    50
    Plugin Contributions
    0

    Default Re: adding a page to the header

    Help plz!
    ...........Being zenned............

  4. #4
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: adding a page to the header

    What link do you want to add and where (in the header) do you want it to appear? Do you want a new browser window to open when the link is clicked?
    20 years a Zencart User

  5. #5
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: adding a page to the header

    Did you not see this bit in the TUTORIAL... ?

    You would add an external link as outlined above.
    Code:
    <li><a href="http://your_external_link.com">Your Link Text</a></li>
    Save the edited file to includes -> templates -> CUSTOM -> common -> tpl_header.php and upload to your server.

    That is the bit you need to add... just change http://your_external_link.com">Your Link Text</a> to your link.
    20 years a Zencart User

  6. #6
    Join Date
    Jan 2009
    Posts
    50
    Plugin Contributions
    0

    Default Re: adding a page to the header

    Thank you for your reply

    I did not know what is the link of my new page, i uploaded it to: includes/languages/french/html_includes/define_bonnes_affaires.php

    I want to add a link called "Bonnes affaires" (in english deals)

    my website is: jeshop.ma/store
    ...........Being zenned............

  7. #7
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: adding a page to the header

    Is this...

    define_bonnes_affaires.php

    ... a genuine php file?

    Did you create an extra define page in the proper manner?

    see:

    http://www.zen-cart.com/index.php?ma...roducts_id=804

    and

    http://www.zen-cart.com/index.php?ma...roducts_id=182
    20 years a Zencart User

  8. #8
    Join Date
    Jan 2009
    Posts
    50
    Plugin Contributions
    0

    Default Re: adding a page to the header

    thanks

    no, I created it myself

    I tried the software before but had problems

    I am trying the about us module now...I'll post results here

    thanks again
    ...........Being zenned............

  9. #9
    Join Date
    Jan 2009
    Posts
    50
    Plugin Contributions
    0

    Default Re: adding a page to the header

    Hello again

    the about us adding works you can check webiste

    but it doesnt show my right column and the footer , I dunno why!

    Your help is appreciated

    websit again: jeshop.ma/store

    ---------

    also I noticed that my 404 page also dont show right column and footer

    does it have to do with permissions on some folders? because I changed permissions for define pages lately following a security post...
    Last edited by joudesign; 2 Jul 2009 at 06:08 PM.
    ...........Being zenned............

  10. #10
    Join Date
    Jan 2008
    Location
    Portland, Oregon USA
    Posts
    356
    Plugin Contributions
    0

    Default Re: adding a page to the header

    To put a new page into the information sidebox you need to edit the file:

    includes/modules/sideboxes/information.php

    - and add the page(s) desired then save it in:

    includes/modules/sideboxes/YOUR_TEMPLATE (the over-ride directory)

    Insert the new page where you want it listed. Here is a fragment from mine:

    PHP Code:
    unset($information);

    if (
    DEFINE_ABOUT_US_STATUS <= 1) {

        
    $information[] = '<a href="' zen_href_link(FILENAME_ABOUT_US) . '">' BOX_INFORMATION_ABOUT_US '</a>';

     }

     if (
    DEFINE_DESIGN_STUDIO <= 1) {

        
    $information[] = '<a href="' zen_href_link(FILENAME_DESIGN_STUDIO) . '">' BOX_INFORMATION_DESIGN_STUDIO '</a>';

      } 
    I've added several new pages - The About Us page is the first listed so it's the first in the sidebox.

    For the footer, try an ez-page link.
    Doug

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v155 Adding Text Into The Header
    By MCS_Computers in forum Templates, Stylesheets, Page Layout
    Replies: 36
    Last Post: 13 Jul 2016, 05:51 PM
  2. Adding a logo to the header
    By spikeycactus in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 15 Sep 2008, 06:35 PM
  3. How would I code an EZ Page when adding it to the header nav bar?
    By rechargebaskets in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 17 Oct 2007, 03:18 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR