PDA

View Full Version : Link to top of page


Bridget
31-May-2006, 05:58 PM
Hi Folks

I know I have read this here somewhere but I have spent hours searching and can't find it again ....

How do I put a link from the bottom of the page back up to the top?

I've got some queries about hosting but will find a more suitable part of the community for those.....

Cheers

Bridget

http://www.militaryfigures.co.uk (existing site produced with different software)
http://www.militarygifts.co.uk/acatalog/test/index.html (new actinic site in progress)

Duncan Rounding
31-May-2006, 06:39 PM
Welcome Bridget.
The html is...
At the top of the page body you will need an anchor:
<a name="top"></a>
and down the page you will need a link to the anchor:
<a href="#top">Top</a>

You could include the 'top' anchor in your Act_Primary template and then perhaps include some html in your product description containing the link to the 'top'.

Bridget
31-May-2006, 07:26 PM
Hi Duncan

Thanks for your quick response. Unfortunately I'm not bright enough to understand it. Would you mind providing me with a bit more of a walkthrough please? I'm a real newbie to html and editing the templates.

Sorry.

Bridget

Duncan Rounding
31-May-2006, 07:50 PM
The Act_Primary.html template in your Site1 directory is used for the product sections. Make a copy of it before making any changes. Open it in Notepad or other editor and add:
<a name="top"></a>
just after the <BODY> tag, then save the template.

Now in your product full description you could for example do this:

This is my product full description blah blah blah !!<<br><a name="top"></a>>!!
Edit: Typo in the line just above - see the correction in Jo's post below.

pinbrook
31-May-2006, 10:48 PM
This is my product full description blah blah blah !!<<br><a href="#top">Top</a>>!!

i've correctedDuncan's code, his first post was correct, the 2nd was not

Duncan Rounding
01-Jun-2006, 05:10 AM
Oops - Thanks Jo - was a long day yesterday. I hope I didn't cause you some extra work Bridget.

Bridget
29-Jun-2006, 11:00 PM
Hi Duncan and Jo

Just writing to say a big thank you for the advice - much appreciated. Sorry it took me so long - little matter of a full time job keeps getting in the way - very boring. Anyway, think I have sorted it now - hopefully without breaking something else!

Thank again.

Bridget
www.militaryfigures.co.uk