Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List of Blogs Snippet on Homepage Don’t Load Properly #4

Open
PrinterzPk opened this issue Jan 7, 2023 · 1 comment
Open

List of Blogs Snippet on Homepage Don’t Load Properly #4

PrinterzPk opened this issue Jan 7, 2023 · 1 comment

Comments

@PrinterzPk
Copy link

The list of blog snippets below the Slick Slider don’t load properly and seems to overlap vertically when page is loaded. This does not happen consistently but is reproducible when tried a few times.

I have been able to reproduce it on the demo/live preview (demo.themefisher.com/parsa/). I have also run the blog locally (Jekyll version) on my machine and I was able to reproduce the same issue. This issue occurs more frequently on the locally hosted version (I did not modify anything in the code but did add a few blog posts with variable size images).

To reproduce it (live demo and locally), I loaded the home page and then scrolled down to a position where Slick Slider images/featured blog posts are not visible. Then I did (on Windows) F5 and CTRL F5 a few times. I repeated this step a few times by scrolling further down and was able to reproduce this issue.

Following are the screenshots which show the bug being described. The screenshots were taken on the live preview.

Thanks for your help and support.

sc22
sc33
sc44
sc11

@once0101
Copy link

once0101 commented Dec 29, 2023

  1. In the Default.html file, add the following line before the masonry script:

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.imagesloaded/4.1.4/imagesloaded.pkgd.min.js"></script>

  1. In the assets/js/script.js file, replace the code under the "// Masonry section" comment with the following code:
  // Masonry
$(document).ready(function () {
  $('.masonry-container').imagesLoaded( function() {
    $('.masonry-container').masonry({
      itemSelector: '.masonry-container > div',
      columnWidth: 1
    });
  });
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants