Adding an anchor text to page to link back to top of page

  • 2
  • Question
  • Updated 10 years ago
  • Answered
I want to put a link at the bottom of each group of text with a "back to top" function so people can return to the top of the page without having to reload the entire page. I added the anchor text to get to each section, but then you have scroll all the way back to get to the top again. How can I fix this? example:
text text text
top of page
Photo of vitamingirlshop

vitamingirlshop

  • 5 Posts
  • 0 Reply Likes
  • silly

Posted 10 years ago

  • 2
Photo of TinaHunter

TinaHunter

  • 38 Posts
  • 1 Reply Like
Really good question. Wondering if you can do this, but also add links to go to certain sections of a single page of text.

Example:

Section one (a link at top of page or side bar to here)
text
text

back to top

Section Two (same as section one)
text
text

back to top
Photo of Ruth

Ruth

  • 2819 Posts
  • 135 Reply Likes
Hi,

Here is a link to a tutorial that explains how to add anchor links to your page: http://tipsandtricks.synthasite.com/A...
Photo of TinaHunter

TinaHunter

  • 38 Posts
  • 1 Reply Like
Thanks. That's Perfect.
Photo of vitamingirlshop

vitamingirlshop

  • 5 Posts
  • 0 Reply Likes
do I use the same anchor text method as I did for my table of contents to link back to the top of the page? This is where I am confused. I would like a link at the bottom of the paragraph to go back to the top
Photo of TinaHunter

TinaHunter

  • 38 Posts
  • 1 Reply Like
I think you are supposed to reverse it if you want to go back to the top. Put the code meant to be in the table of contents where you want it to say "back to top" and then put an anchor at the top of the page.

Am I right, Ruth?
Photo of vitamingirlshop

vitamingirlshop

  • 5 Posts
  • 0 Reply Likes
I tried putting the a name part under the paragraph, and put the code a href part at the top, do I need to start my numbers at the bottom and go up? Should the top of page be called a1? I tried several different ways, still didn't work :( example:
Cranberry Walnut Dressing Apple Oat Muffins Beef Bourguignon Pork Roast With Spicy Glaze Lemon Garlic Chicken Cream of Chicken & Mushroom Casserole Cajun Sirloin Burgers 8 Healthy Foods?
This is my contents at top, and I have an anchor at top of each section linked to the code. But If I put the code under the paragraph, with a new #, it is not linking back to it. here is the page I used code from;
http://www.vitamingirlshop.info/recip...
Photo of vitamingirlshop

vitamingirlshop

  • 5 Posts
  • 0 Reply Likes
sorry, misunderstood your answer, i will try that way :)
Photo of vitamingirlshop

vitamingirlshop

  • 5 Posts
  • 0 Reply Likes
YESSSS! Thankl You! If I had read your answer right the first time.... That did it, Thank You again!