Forums / General Questions / How to create "back to top" in Zencart?

How to create "back to top" in Zencart?

Locked

Views: 803

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
25 Nov 2007, 8:17 PM
#1
nrg77 avatar

nrg77

Zen Follower

Join Date:
May 2007
Posts:
181
Plugin Contributions:
0

How to create "back to top" in Zencart?

One of my pages gets a bit long therefore I want to create a "back to top" anchor however it doesn't seem to work as it always goes back to the main homepage instead of just going to the top of that specific page? So how do I create it? Here is how I tried to code it.

<a name="top"></a>

<a href="#top">back to top</a>

^^doesn't work for me.....

25 Nov 2007, 9:31 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: How to create "back to top" in Zencart?

There are a number of threads discussing various approaches:
http://www.zen-cart.com/forum/search.php?do=process&query=anchor+top

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

26 Nov 2007, 6:41 AM
#3
nrg77 avatar

nrg77

Zen Follower

Join Date:
May 2007
Posts:
181
Plugin Contributions:
0

Re: How to create "back to top" in Zencart?

^^ I followed those links and searches however, when the "back to top" link is clicked, it goes to the top of the first line of text instead of all the way up where it will see the top banner/menu....

minor issue but would like to find out how to do it...

Thanks..