DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

back button to top of page

 3 Replies
 0 Subscribed to this topic
 40 Subscribed to this forum
Sort:
Author
Messages
New Around Here
Posts: 10
New Around Here

 

In the DNN software, there is a module or app with a button to return to the top of the page. At the moment I'm using the anchor link to go up to the top of the page... but that's not correct. Would there be another way to do this?

Veteran Member
Posts: 838
Veteran Member
3 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
New Poster
New Poster
Congrats on posting!

You don;t need a module for that. It should be in a theme.

On https://www.w3schools.com...js_scroll_to_top.asp there is a how to.

If you really want it in a module, you could even combine the js/css/html in 1 module ;-) 

Senior Member
Posts: 1607
Senior Member
MVP
MVP
You're an MVP!
New Poster
New Poster
Congrats on posting!
Posted By Tycho de Waard (SU) on 1/31/2024 6:44 AM

You don;t need a module for that. It should be in a theme.

On https://www.w3schools.com...js_scroll_to_top.asp there is a how to.

If you really want it in a module, you could even combine the js/css/html in 1 module ;-) 

I agree. Try not to overthink something like this.  Also, if it's a possibility, I'd suggest making the page smaller (shorter). More pages is better for all kinds of reasons, when compared to a single, long page.  

 

Veteran Member
Posts: 363
Veteran Member
4 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
New Poster
New Poster
Congrats on posting!
4 Engaged Reader
Engaged Reader
You are an engaged reader!
2 Avid Reader
Avid Reader
Avid Reader art thou!
2 Most Liked
Most Liked
Congrats, your posts are really liked!

Totally agree with Will! specially nowadays that people visit websites mostly from their mobile devices and they expend less time on a page using their smartphone than on a Desktop or Laptop.

These Forums are for the discussion of the open source CMS DNN platform and ecosystem.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
  2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
  3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  5. No Flaming or Trolling.
  6. No Profanity, Racism, or Prejudice.
  7. Site Moderators have the final word on approving / removing a thread or post or comment.
  8. English language posting only, please.

Would you like to help us?

Awesome! Simply post in the forums using the link below and we'll get you started.

Get Involved