Hiding "Load more" link when not needed

Posted in: Newspaper
Post count: 90

When the user has clicked the “Load more” link with the result that all available articles are shown, the “Load more” link is still visible and clickable.

True, it is now greyed out and clicking it has no effect, but it would be more intuitive to hide it when there are no more articles to load.

How could this be accomplished?

Post count: 6600

Hi,

You can do this by altering the code for the “load more button” like this: http://screencast.com/t/vJqnn9jHI
Also add this custom css in theme panel > custom css filed:

.ajax-page-disabled {
display: none;
}

Thanks

Post count: 90

Thank you Lucian,

I’ll give that a try.

Post count: 90

It now works when there are additional articles to begin with. After clicking the “Load more” text and having all additional articles shown, the text disappears.

However, I noticed that the “Load more” text is still incorrectly visible in the following situation:

All the articles in the category are already shown when the page is originally loaded.

Thus, the user clicks the “Load more” text, only to see that there are no additional articles. The “Load more” text disappears.

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.