Title: Wrong HTML structure when using ul container type
Last modified: August 30, 2016

---

# Wrong HTML structure when using ul container type

 *  Resolved [Tofferus](https://wordpress.org/support/users/claborier/)
 * (@claborier)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/wrong-html-structure-when-using-container-type/)
 * When configuring AjaxLoadMore tu use “ul” container type, the generated HTML 
   has a wrong structure.
 * For example, if I set my repeater template with :
 *     ```
       <li><!-- My content --></li>
       ```
   
 * The generated HTML will look like this :
 *     ```
       <ul ><!-- The container type generated -->
          <div class="alm-reveal">
             <li><!-- My content --></li>
             <li><!-- My content --></li>
             <li><!-- My content --></li>
          </div>
       </ul>
       ```
   
 * On top of that I’m using a css framework : the ‘alm-reveal’ div prevent it to
   work properly. The CSS targets only direct childrens like that :
    `ul > li{...}`
 * and I don’t really want to overwrite the css to fix the problem.
 * Is there any way to fix that ?
 * Thanks
    [https://wordpress.org/plugins/ajax-load-more/](https://wordpress.org/plugins/ajax-load-more/)

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

 *  Plugin Author [Darren Cooney](https://wordpress.org/support/users/dcooney/)
 * (@dcooney)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/wrong-html-structure-when-using-container-type/#post-6795130)
 * Hi,
    I understand your issues – unfortunately, that is the HTML required to display
   the ajax loaded posts and this can’t be at this time.
 *  Thread Starter [Tofferus](https://wordpress.org/support/users/claborier/)
 * (@claborier)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/wrong-html-structure-when-using-container-type/#post-6795191)
 * Hi
 * Thank you for your quick answer.
 * I understand there cannot be a quick fix for that as the behavior of the plugin
   is based on the existence of the “alm-reveal” div.
 * However is there any chance you plan to fix that for the foreseeable future :
   in any case that is not the proper way to build a HTML ul list element. Shouldn’t
   be the “alm-reveal” element be a wrapper for the “container type” element ?
 * Apart from that problem, thank you for your work, the plugin is really nice.
 *  Plugin Author [Darren Cooney](https://wordpress.org/support/users/dcooney/)
 * (@dcooney)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/wrong-html-structure-when-using-container-type/#post-6795193)
 * I didn’t have any plans to ‘fix’ this, but I’ll add this to my enhancement board
   and see if I can come up with a solution to turn this off.

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

The topic ‘Wrong HTML structure when using ul container type’ 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/)

 * 3 replies
 * 2 participants
 * Last reply from: [Darren Cooney](https://wordpress.org/support/users/dcooney/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/wrong-html-structure-when-using-container-type/#post-6795193)
 * Status: resolved