Load More Button

:information_source: Summary Inserts a “load more” button that needs to be clicked to load more topics / posts / users / groups / whatever
:eyeglasses: Preview https://discourse.theme-creator.io/theme/RGJ/load-more-button
:hammer_and_wrench: Repository GitHub - communiteq/discourse-tc-load-more-button · GitHub
:question: Install Guide How to install a theme or theme component
:open_book: New to Discourse Themes? Beginner’s guide to using Discourse Themes

Install this theme component

Inserts a “Load More” button to make sure Discourse does not qualify as “DISPLAYS ADDITIONAL MEDIA AT THE BOTTOM OF SUCH FEED OR LANDING PAGE WITHOUT ANY MANUAL INPUT FROM A COVERED USER.”

Context here Time to reconsider infinite scroll?

Topic list

Topic view

User directory

Detailed description…

4 Likes

haha nice! i was thinking about giving this a shot too - was thinking of putting the button in the sidebar or floating it. well done :clap:

2 Likes


Button’s hard to reach with (right) thumb on mobile :slight_smile:

It would be better centered.

3 Likes

to centre on mobile:

@use "lib/viewport";

@include viewport.until(md) {

  .load-more-btn.btn.btn-primary {
    display: block;
    margin: 0 auto;   
  }
}

edit: pull request for Richard if he is so inclined

2 Likes

This is very nice - thanks! I do have a bug report which is clearly manifest at my Discourse site:

This site is quite small and most of the content is hidden until one signs on as a student. Thus, the landing page has only five posts. Nonetheless, the “Load more” button appears, which it shouldn’t. If you press it, it goes away. If you scroll up a bit and then back down, then it’s back again.

It works great, though, on the topic pages. You’ll have to trust me on that since they’re hidden from public view.

Of course, I understand that you did this in your spare time but I thought I should let you know. And thanks again!

1 Like