Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Changing links to new pages

Changing links to new pages

Locked

Views: 562

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
14 Jan 2010, 4:07 PM
#1
pb4 avatar

pb4

Totally Zenned

Join Date:
Nov 2007
Posts:
555
Plugin Contributions:
0

Changing links to new pages

I have added new information pages to the right of my site fine (including the links). I now have links in the header that I want to link to pages I have added.

At the moment the header links go to external pages...this is an example of one of the links in the tpl_header.php file

	<li><a href="http://www.ampmgraphics.com/affordable-graphic-design.html"><span style="color: #666666">| </span> About us</a></li>

The links in the includes/modules/sideboxes/mytemplate/information.php file look like this (and obviously work fine)

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

I have an about us page created and want to link to it in the header...how should that look? I tried a few things but it didn't work..
Does anyone know?
Thank you :smile:

15 Jan 2010, 12:35 PM
#2
pb4 avatar

pb4

Totally Zenned

Join Date:
Nov 2007
Posts:
555
Plugin Contributions:
0

Re: Changing links to new pages

Do I need to include something else? Can anyone help ? :(

15 Jan 2010, 3:17 PM
#3
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Changing links to new pages

I take it the URL in the address bar when you are on the About Us page is
http ://www .ampmgraphics.com/affordable-graphic-design.html? This seems to be a flat HTML file in the domain base, a level above the ZC base folder. I would agree with the advice you say you received earlier to put the content in an ez-page and have it all in the same container. Then it will be easy to link to.

15 Jan 2010, 4:03 PM
#4
pb4 avatar

pb4

Totally Zenned

Join Date:
Nov 2007
Posts:
555
Plugin Contributions:
0

Re: Changing links to new pages

Thanks Glenn...so basically scrap the top header links..add EZ pages and add them to the header..Still not getting EZ pages and how to add one..the about us links on the info section were easier to do.

I can find plenty of info on what EZ pages are but not on how to add one :unsure:

15 Jan 2010, 4:52 PM
#5
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Changing links to new pages

Couldn't be easier ;)
Admin > Tools > EZ_Pages > create new page > insert a title, make the appropriate link settings (even if you don't want the link to show in any of the standard locations, you need to set a non-zero sort order in the sidebox area), paste HTML content in the textarea (make sure to strip any <html>, <head> or <body> tags as those would be duplicates).