Link to home
Start Free TrialLog in
Avatar of tolppa
tolppa

asked on

Sharepoint 2010: How do I add an anchor link to Website

Hello. Probably a stupid question but I can't figure out  how to add an anchor link to my sharepoint website. I read somewhere that sharepoint has problems with anchor links.  
Avatar of Ingeborg Hawighorst (Microsoft MVP / EE MVE)
Ingeborg Hawighorst (Microsoft MVP / EE MVE)
Flag of New Zealand image

Hello,

I've used plenty of anchor links in Sharepoint and have not experienced any problem. The syntax is the same as in any other website

<a href="http://sitename/pagename.aspx#anchorname">go to anchor</a>

Open in new window


Of course you need to make sure that the anchor exists on the page in the first place. For example you can edit a Content editor web part with the HTML tools and insert an anchor in the HTML

cheers, teylyn
Avatar of tolppa
tolppa

ASKER

Thanks teylyn. I would like to avoid forcing users to edit html, but seems like that is not possible.
If the site has the Publishing Feature enabled, I you can use the ribbon to add an anchor.

First, you need to create a hyperlink. When the hyperlink is selected, you see the Link Tools ribbon. The Bookmark field is only visible when the Publishing Feature is enabled, though.

 User generated image
cheers, teylyn
ASKER CERTIFIED SOLUTION
Avatar of Ingeborg Hawighorst (Microsoft MVP / EE MVE)
Ingeborg Hawighorst (Microsoft MVP / EE MVE)
Flag of New Zealand image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tolppa

ASKER

Thanks, that work like a charm.