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
Re: adding a page to the header
Re: adding a page to the header
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?
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.
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
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
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
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...
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.