How to create an anchor

This question is in reference to Atlassian Documentation: Anchors

I struggle to create an anchor within a page in my personal space. The anchor symbol shows in the editing mode. When I press "save" it does not show in the viewing mode. What am I doing wrong? If you answer, please do not just refer to the "how to create an anchor help page". I followed the instructions there...

4 answers

Hi @Lea Sauer

You would not normally see the anchor on the display when you save the page but if you inspect the page source you should see that it is present. 

I have an example here where an anchor is on the heading Tangible Benefits in the document entitled ROI.

<h3 id="ROI-tangibleTangibleBenefits">

 <span class="confluence-anchor-link" id="ROI-tangible"></span>

 Tangible Benefits

 </h3>

For clarity I have split the row up to show the different elements. The interesting point is the <span class="confluence-anchor-link"... which is what gets inserted to mark an anchor.  Then if you wish to link to this anchor you can.

Regards

Phill


This is not a direct answer to the original question, but I believe it could help the author. I am the author of Requirement Yogi. It is only available for Confluence Server.

I've had difficulties with anchors too and I couldn't use them to link to specific places in requirement documents. Therefore I've created Requirement Yogi. The principle is simple: You can insert a requirement macro in the text, assign it a key, and you can reference this key from other places. When clicking on a reference, it jumps to the anchor in the original text.

You won't see any indication that there is an anchor in "view" mode.

Does the anchor reappear when you go back to edit mode?

Does a hyperlink to the anchor work?

Hi Lea,

               Why will you see anchor symbol while viewing page. The main function of anchor macro is to scroll to any part of page where the text is linked to anchor name.

Test-Anchors.PNG

 

Create-Anchor-Link.PNG

 

  • You will not see anchor symbol in view mode.

 

 

view-mode.PNG

 

Regards

Chander

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

374 views 20 10
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you