Forum Discussion

NishaAtkins's avatar
NishaAtkins
Community Member
26 days ago

Top of Page code

Hello, excited to see this new feature. 

I'd really like a link or button that sends users back to the top of the page. I used AI to write the code, as suggested in the instructions in 'An Introduction to Rise Code Block'.

When I paste the code into the block, the 'Top of Page' link/button appears but when I click on it, nothing happens. 

I'll attach a text doc with the code - any help would be much appreciated. thank you.

2 Replies

  • EricaHunter's avatar
    EricaHunter
    Community Member

    My understanding is that the code blocks currently can't communicate with the course - they are locked into themselves, so the JS can't boss the page around 🥲. I don't see your code attached, but I wrote a quick JS to do this and it didn't work.

    • NishaAtkins's avatar
      NishaAtkins
      Community Member

      Ah ok, that makes sense. Thank you very much for the reply - really helpful.