Can you link to a specific location on a page?

  • 1
  • Question
  • Updated 9 years ago
  • Answered
Is it possible yet to have something like an idex at the top of the page that would link to a specific location on my page? Or even link to a specific location on another page, not just the page itself?

This way a person can jump to a certain location without having to scroll through the other stuff.

I saw a thread from a year ago and it said this would be coming soon. Any updates?
Photo of mike

mike

  • 38 Posts
  • 0 Reply Likes
  • concerned

Posted 9 years ago

  • 1
Photo of Ellie

Ellie

  • 38 Posts
  • 1 Reply Like
Hello Mike,

You can do this by using an anchor code:
<!-- <a href = '#a1'>Anchor Name</a>
<a name = 'a1'></a>-->

Be sure to erase <!-- and -->

The first code specifies the name of your anchor and the second code is the link that leads to the specified anchor. (This is a code mainly used for an anchor in the same page).

To make an anchor link to a specified content on a another page, simply use this code:
<!--<a href="your-link.php#a1">Anchor Name</a>-->

Be sure to erase <!-- and -->

Lastly to make a anchor link using the main menu, simply follow these steps:
1. Go to the Edit Menu
2. Hit Settings, of the link you want to be replaced
3. Erase the words under Menu Text
4. Enter the anchor code

That should work. Tell me if any of this confuses you. Hope this helps.

Ellie
Photo of Emmy

Emmy

  • 5892 Posts
  • 299 Reply Likes
Thanks Ellie!
Photo of mike

mike

  • 38 Posts
  • 0 Reply Likes
Thank you for that.

My question now is for the first code. How would that tell where exactly to "jump" to on the page? What would I have to input in the code in order for it to be able to tell exactly where I want them to go to?

I know that Anchor Name would be what I want the link to be called, but I dont know what to do with the second part of the code.

Thanks in advance.

Mike
Photo of mike

mike

  • 38 Posts
  • 0 Reply Likes
Ok I did another search and found this link:

http://www.developingwebs.net/html/le...

this explained it as well.

Thank you again.
Photo of mike

mike

  • 38 Posts
  • 0 Reply Likes
Ok. Got it working .. love it.

New Idea. Integrate this into a drop down menu. What would the code be to pull that off? And I would like for people to be able to click on the text and it automatically takes them to that section of the page. They would NOT have to click any GO BUTTON.
Photo of mike

mike

  • 38 Posts
  • 0 Reply Likes
Anyone?
Photo of jeremy

jeremy, Employee

  • 1349 Posts
  • 90 Reply Likes
Hi there Mike,

I am not 100% sure about integrating it into a drop-down menu... I don't see why not. As opposed to the text for the menu you will make it the link. Eg: <!-- <a href="#Top">Jump to Top</a>-->

You don't need a "go" button either. The anchor link text can be anything. In the below example "Jump to Top" will be what displays so people will just click on the words.

<!-- <a href="#Top">Jump to Top</a>--> and then the link they jump to will be <!--<a name="Top"></a>--> which will not display at all and you can place anywhere you want people to jump to.

I hope this helps.