Title: Div wrapping li?
Last modified: August 22, 2016

---

# Div wrapping li?

 *  Resolved [p10design](https://wordpress.org/support/users/p10design/)
 * (@p10design)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/div-wrapping-li/)
 * Is this supposed to happened? or is something wrong with my setup?
 * When using the plugin, I choose to wrap everything with a UL (not a DIV). This
   works, but the loaded content is wrapped in another div.
 * causing this to happen:
 *     ```
       <ul>
   
         <div class="alm-reveal">
          <li></li>
          <li></li>
          <li></li>
       </div>
   
       </ul>
       ```
   
 * [https://wordpress.org/plugins/ajax-load-more/](https://wordpress.org/plugins/ajax-load-more/)

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

 *  Plugin Author [Darren Cooney](https://wordpress.org/support/users/dcooney/)
 * (@dcooney)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/div-wrapping-li/#post-5584058)
 * .alm-reveal is added by the plugin. It’s required in order to animate the elements
   onto the screen.
 *  Thread Starter [p10design](https://wordpress.org/support/users/p10design/)
 * (@p10design)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/div-wrapping-li/#post-5584125)
 * Thanks. I just wanted to make sure it wasn’t my setup. That will never validate
   as good html, but not much does nowadays.
 *  [Brade](https://wordpress.org/support/users/brade/)
 * (@brade)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/div-wrapping-li/#post-5584486)
 * This markup is problematic to say the least. Don’t like to see it just casually
   accepted. It also causes problems with nth-child CSS rules, especially if you
   have an unpredictable number of posts pre-loaded at top.
 *  Plugin Author [Darren Cooney](https://wordpress.org/support/users/dcooney/)
 * (@dcooney)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/div-wrapping-li/#post-5584487)
 * Hi Brade,
    You have the option to change the default container so if you don’t
   like the non semantic HTML you can change the container to a DIV.
 *  Thread Starter [p10design](https://wordpress.org/support/users/p10design/)
 * (@p10design)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/div-wrapping-li/#post-5584488)
 * That’s what I ended up doing.
 *  [Brade](https://wordpress.org/support/users/brade/)
 * (@brade)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/div-wrapping-li/#post-5584489)
 * Yep, I did notice that and that does solve the validation issue–now I just wish
   ul wasn’t even an option for the wrapper =]
 * I’m also hoping that nth-of-type will be an adequate sub for nth-child, but will
   have to play around with it more.

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

The topic ‘Div wrapping li?’ is closed to new replies.

 * ![](https://ps.w.org/ajax-load-more/assets/icon-256x256.png?rev=2944639)
 * [Ajax Load More – Infinite Scroll, Load More, & Lazy Load](https://wordpress.org/plugins/ajax-load-more/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ajax-load-more/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ajax-load-more/)
 * [Active Topics](https://wordpress.org/support/plugin/ajax-load-more/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ajax-load-more/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ajax-load-more/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [Brade](https://wordpress.org/support/users/brade/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/div-wrapping-li/#post-5584489)
 * Status: resolved