Title: add a div before article
Last modified: August 30, 2016

---

# add a div before article

 *  [carospi7](https://wordpress.org/support/users/carospi7/)
 * (@carospi7)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/add-a-div-before-article/)
 * Hello, I installed the plugin on the website [http://roomie.babylon-lab.com/roomie/category/designers/](http://roomie.babylon-lab.com/roomie/category/designers/).
 * When I do scrolling, posts are all located within the last div, I need to be 
   located outside.
 * Can I add a custom div containing div articles?
 * Thank you, Greetings!
 * [https://wordpress.org/plugins/yith-infinite-scrolling/](https://wordpress.org/plugins/yith-infinite-scrolling/)

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

 *  Plugin Author [YITHEMES](https://wordpress.org/support/users/yithemes/)
 * (@yithemes)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/add-a-div-before-article/#post-6803416)
 * Hi,
    maybe you have set the “content selector” in wrong way. Try to add this 
   selector: div.entries-masonry.
 * Then, because you use masonry style, you need to do some compatibility. Try to
   add this js code in your custom script
 *     ```
       jQuery(document).on( 'yith_infs_adding_elem', function(){
         if ( jQuery.fn.masonry ) {
             var container = jQuery( 'div.entries-masonry' );
             container.masonry('reloadItems');
         }
       });
       ```
   
 * Let me know, regards 🙂
 *  Thread Starter [carospi7](https://wordpress.org/support/users/carospi7/)
 * (@carospi7)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/add-a-div-before-article/#post-6803417)
 * Which js I would have to add the code? in the js plugin or theme? Thank you!
 *  Thread Starter [carospi7](https://wordpress.org/support/users/carospi7/)
 * (@carospi7)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/add-a-div-before-article/#post-6803418)
 * I add div.entries-masonry to content selector and js code to the “yith-infs.js”
   and “yith.infinitescroll.js” but does not work.
 * Thanks for the help, greetings!

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

The topic ‘add a div before article’ is closed to new replies.

 * ![](https://ps.w.org/yith-infinite-scrolling/assets/icon.svg?rev=3303151)
 * [YITH Infinite Scrolling](https://wordpress.org/plugins/yith-infinite-scrolling/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yith-infinite-scrolling/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yith-infinite-scrolling/)
 * [Active Topics](https://wordpress.org/support/plugin/yith-infinite-scrolling/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yith-infinite-scrolling/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yith-infinite-scrolling/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [carospi7](https://wordpress.org/support/users/carospi7/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/add-a-div-before-article/#post-6803418)
 * Status: not resolved