Title: Callback on last page?
Last modified: August 21, 2016

---

# Callback on last page?

 *  [Philljc](https://wordpress.org/support/users/philljc/)
 * (@philljc)
 * [13 years ago](https://wordpress.org/support/topic/callback-on-last-page/)
 * Hello
 * At the moment I have a CSS selector…
 * div.entry:last-of-type {
    background: none; }
 * …this will be applied to the last ‘entry’ div, which changes as more pages load
   and more ‘entry’ divs are visible. This isn’t ideal. I only want it to apply 
   to the last post on the page (or load).
 * Is there a way to pass another callback once you’re on the last page, instead
   of just after each new page loads?
 * Thanks
 * [http://wordpress.org/extend/plugins/infinite-scroll/](http://wordpress.org/extend/plugins/infinite-scroll/)

The topic ‘Callback on last page?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/infinite-scroll.svg)
 * [Infinite-Scroll](https://wordpress.org/plugins/infinite-scroll/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/infinite-scroll/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/infinite-scroll/)
 * [Active Topics](https://wordpress.org/support/plugin/infinite-scroll/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/infinite-scroll/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/infinite-scroll/reviews/)

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [Philljc](https://wordpress.org/support/users/philljc/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/callback-on-last-page/)
 * Status: not resolved