Forum Discussion
Anchor links in News page
This might be fixed now as of August 2019.
SPO makes any text where you use the "header" style into a potential anchor.
Publish the page and then mouse over the header text. You'll see a little link icon.
Right click and copy the link. That's your header link INTERNAL TO THE PAGE
If you want to use the link in a menu, you have to modify it. If your anchor link was something like this:
https://XXX.sharepoint.com/sites/XXX/SitePages/Human-Resources.aspx#benefits
To get to that anchor via a menu item you have to add a '?' before the anchor hash tag thusly:
https://XXX.sharepoint.com/sites/XXX/SitePages/Human-Resources.aspx?#benefits
HUGE thanks to Doug Allen writing at the C5 Insight page for discovering this little trick...
https://www.c5insight.com/Resources/Blog/tabid/148/entryid/736/the-incredibly-easy-no-code-solution-to-simple-anchor-tags-in-sharepoint-navigation.aspx
- EmersonOliveiraNov 11, 2019Copper Contributor
hello Alpine_Miller
I saw many people saying about this resource, but I cannot use this feature because a url (#) is not created from a Header.
My question is:
Is it necessary to enable the feature in any sharepoint settings?
- Alpine_MillerNov 11, 2019Copper Contributor
EmersonOliveiraI didn't have to turn on any settings. In my experience, any time you use the text style "Header 1" or "Header 2", it creates an anchor point. You have to publish the page live, then when you mouse over the Header 1/2 text a little anchor link appears to the right of the text. Right click on that and copy the link and you can use that for the URL.
- EmersonOliveiraNov 11, 2019Copper Contributor
hello Alpine_Miller
Tks for your answer.
I did exactly what you reported.
In my organization we use sharepoint online and possibly there was some configuration that is not generating link from header.
Because we use the private feature so much that some areas don't access some sensitive data, it may have something that doesn't allow us to generate the anchors.
Thanks for your quick reply.