.load-more {
position: relative !important;
justify-content: center !important;
display: flex !important;
}
Add this to base.css
A user implemented a “Load More” button for their Shopify collection page but encountered issues with it not displaying all products correctly.
Initial Problem:
collection-load-more.js) was created but failed to load all products properlySolution Provided:
A support representative (BSS-TekLabs) offered a multi-part fix:
new_products[i] to new_products[0] and moving the page increment)main-collection-product-grid.liquid to handle pagination URLtheme.liquid to conditionally load the scriptbase.css to properly display the load more buttonCurrent Status:
.load-more {
position: relative !important;
justify-content: center !important;
display: flex !important;
}
Add this to base.css