How can I make a link to a different location in the same page?

  • 1
  • Question
  • Updated 9 years ago
  • Answered
I would to add buttons which to specific paragraphs in the same page.
Photo of Felipe

Felipe

  • 58 Posts
  • 0 Reply Likes
  • unsure

Posted 9 years ago

  • 1
Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
Hello Felipe

If you are wanting to have an anchor link open to a specific area on a different page you can do so as follows:

1. Drag and drop a HTML widget (it looks like a blue sphere) onto the page you want to link from. Add this code to the HTML widget
<a href="mypage.php#anchor"><img src="http://yoursite.yolasite.com/resource...;
* replace "mypage" with the page you want to link to
* replace "yoursite.yolasite.com" with your site URL
* replace "yourimage.jpg" with the image file name.

2. On your page you want to link to, drag and drop another HTML widget to the area you want the link to jump to and add this code to it.
<a name="anchor"></a>

Your link on the first page will then link to the area you added the code to.

Here is a link to a tutorial that explains how to add anchor links to your page: Anchor text.

Please let me know how this goes.