Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / Using HTML named anchors in define pages

Using HTML named anchors in define pages

Started by lat9 on 29 Dec 2009, 8:43 PM · Views: 1,828

Results 1 to 4 of 4
29 Dec 2009, 8:43 PM
#1
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,153
Plugin Contributions:
56

Post #1 by lat9

I was adding an FAQ section to my site, using html named anchors ... as defined here. All the URLs were being generated as

http://www.mysite.com/#label

It was driving me nuts until I (finally) figured out that the anchor link needed to be coded as

<a href="index.php?main_page=zen_page_name#label">

I'm hoping this helps somebody else out!

13 Oct 2010, 5:40 PM
#2
orange_juice avatar

orange_juice

Zen Follower

Join Date:
Apr 2009
Location:
Athens, Europe
Posts:
125
Plugin Contributions:
0

Post #2 by orange_juice

Thank you!!!

:clap:

Kind regards,
orange_juice

http://www.dodeca.eu/
Zen Cart is simply Jamming

17 Feb 2011, 9:54 PM
#3
amandavz avatar

amandavz

Zen Follower

Join Date:
Mar 2009
Location:
Crockett, Texas
Posts:
139
Plugin Contributions:
0

Post #3 by amandavz

YOU'RE THE BEST!!! Thanks. :clap:

Amanda Vande Zande
AllClipART.info
Lonestar Princess

4 Jun 2012, 1:02 AM
#4
billyboyle avatar

billyboyle

Zen Follower

Join Date:
Jul 2011
Location:
Glasgow, Scotland
Posts:
115
Plugin Contributions:
1

Post #4 by billyboyle

Tried that really didn't work for me on the main page, probably not on any defined pages.
Sorry if this sounds like I'm dissing the [op].

would it not be better to use

<a href="<?php echo zen_href_link("page_name#label") ?>">link name...</a>

seeing as how Zen Cart does all the rest for us. domain name folder level blah! blah!.

Again sorry if that's insulting to lat9 not intended.

Today I am trying something different. Read the install.txt Read the FAQ Read the forum for answers; Then Install the mod. ;-)
AML Candles