• Hi,
    I am using Sunshine plugin and like the features. Earlier I was able to see next button at the bottom of the gallery pages if there are more images. I have setting to show 4 columns and 5 rows so total images per gallery page is 20. Even when I have more than 20 images I am not able to see next button/arrow at bottom of my screen and all the times displaying only first page with max of 20 images. What setting would have gone wrong? Earlier I remember seeing this display correctly.
    I appreciate any help on this.

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter satya26

    (@satya26)

    Looks like I found the issue. For jpg file extensions sunshine-gallery-image-count is considering the image count correctly. But I have all images in svg file format in some of the pages and there I am seeing the issue. sunshine-gallery-image-count is showing as 0 for svg file format images and for that reason looks like ‘next page’ is not getting populated in the gallery list pages even when images are more.
    In the code I can see both file extensions are supported but looks like image-count is not handled for svg files. Can you please check more on this

    Currently in the function sunshine_allowed_file_extensions() {
    $extensions = array( ‘jpg’,’svg’ );

    Try adding the following custom code as well:

    function cc_mime_types($mimes) {
      $mimes['svg'] = 'image/svg+xml';
      return $mimes;
    }
    add_filter('upload_mimes', 'cc_mime_types');
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Stopped seeing next page button in gallery pages even when there are more images’ is closed to new replies.