Code for view more button in Flatsome image gallery

By default, Flatsome’s Gallery creator does not have a way to load more images, but it shows all the images at once. If there are 10,000 images in the Gallery, leaving it alone will cause the top to freeze and not know when it will finish. Therefore, according to the design submitted by the customer, we must code an additional “View more” button to proactively display how many images, and the page will load more smoothly.

Copy the code below and put it in Function.php of the child theme.

https://paste.ofcode.org/xLACcVvYwsmBbP9hhGVGxN

Leave a Reply

Your email address will not be published. Required fields are marked *