We should be able to do this by using the Anchor macro.
Add the macro at the top of the page, and give it a name, like top for example.
Then, at the bottom, or anywhere in the same page, type out the text for the "button", for example, Back to top.
Now highlight the Back to top text, and click on the Insert Link icon, or you can use the Ctrl+K shortcut as well.
In the link pop-up, go to the Advanced tab, and link it to the anchor created above by linking to it using #top.
That should do the trick!
Do let me know if you have any questions.
It appears that they did away with the anchors. Very frustrated. Thought using the Header links would work as described in the article below. They work great in Confluence. However, we use our confluence pages with Jira. Not only do the header links used as jump links.. not work.. But neither does the Table of contents. Ugggh! Constantly finding a work around with this program. Also the solution that was written below to add a script.. is only for admins. I believe we have about 75 employees in our company.. The person who purchased the program is not going to give us all admin access. This should be a standard user feature.
Navigate to the Administration Console > Custom HTML and edit the At end of the body section. Here you can add custom JS to implement your requirement.
For example you could use
<script>AJS.$('#main-content').after('<div><a onClick="window.scrollTo(0, 0);">Back to top</a></div>');</script>
This will add a Back to top link at the bottom of every page. Modify the inserted html to adapt it to the desired look and feel.
Hi Community! We're thrilled to share that Team Calendars for Confluence is now a built-in feature for Confluence Data Center releases 7.11 and beyond. A long time favorite, Team Cale...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events