Title: using DCLL in a loop
Last modified: February 14, 2018

---

# using DCLL in a loop

 *  Resolved [Kibinai76](https://wordpress.org/support/users/kibinai76/)
 * (@kibinai76)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/using-dcll-in-a-loop/)
 * Hi I’m using dcll in an archive page of a custom post type. It works fine always
   on the first 6 images (9 images per page) the other three are rendered with the
   SVG placeholder.
    Just few times all the images appeared but after reloaded the
   page again only the first 6 were visible.
 * if I check via mobile no pictures are visible.
 * I used the code in this way inside the archive page:
    <?php if ( has_post_thumbnail()){
   $image = get_the_post_thumbnail( $post_id ); $image = apply_filters( ‘dominant_colors’,
   $image, get_post_thumbnail_id ( $post_id ) ); echo $image; } else {
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fusing-dcll-in-a-loop%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [manuelwieser](https://wordpress.org/support/users/manuelwieser/)
 * (@manuelwieser)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/using-dcll-in-a-loop/#post-9973529)
 * If you call `monitorEvents(window, 'scroll');` in your browser’s console you’ll
   see that your site doesn’t emit scroll events. Do you have an idea why that could
   be?
 *  Thread Starter [Kibinai76](https://wordpress.org/support/users/kibinai76/)
 * (@kibinai76)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/using-dcll-in-a-loop/#post-9974146)
 * Yes you are right! I had body set to overflow-x hidden (for lightbox). Now everything
   works fine.
    Thank you.
    -  This reply was modified 8 years, 3 months ago by [Kibinai76](https://wordpress.org/support/users/kibinai76/).

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘using DCLL in a loop’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/dominant-colors-lazy-loading_723f22.
   svg)
 * [Dominant Colors Lazy Loading](https://wordpress.org/plugins/dominant-colors-lazy-loading/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/dominant-colors-lazy-loading/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/dominant-colors-lazy-loading/)
 * [Active Topics](https://wordpress.org/support/plugin/dominant-colors-lazy-loading/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dominant-colors-lazy-loading/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dominant-colors-lazy-loading/reviews/)

## Tags

 * [loop](https://wordpress.org/support/topic-tag/loop/)

 * 2 replies
 * 2 participants
 * Last reply from: [Kibinai76](https://wordpress.org/support/users/kibinai76/)
 * Last activity: [8 years, 3 months ago](https://wordpress.org/support/topic/using-dcll-in-a-loop/#post-9974146)
 * Status: resolved