Last active
November 1, 2020 23:20
-
-
Save wplit/21d3c0e29f5327dafd282cb16222a33f to your computer and use it in GitHub Desktop.
hide a load more button if no next pagination link found
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(document).ready(function($) { | |
let loadMoreSelector = '.load-more'; // change to load more button selector | |
if (!$('.oxy-infinite-scroller').find('.next').length) { | |
$(loadMoreSelector).hide(); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment