Table of Contents
Dynamically generated anchor links for Ajax loaded content
In this example:
Ajax Load More will dynamically create a table of contents for each page loaded via Ajax.
Clicking a table of contents anchor link will scroll the user to the top of that page within the Ajax Load More listing.
Enable the Table of Contents component by adding the following HTML element to a WordPress template or page.
<div class="alm-toc"></div> <!-- Renders: [1][2][3] etc... -->HTMLNote: The Table of Contents component is supported by the SEO, Filters, and Single Posts add-ons.
Sections:
-
A New Chapter for Ajax Load More
Ajax Load More has a new home. Discover documentation, demos, premium add-ons, support resources, and everything related to the...
-
Data Prefetching with Ajax Load More
Improve the perceived loading times of Ajax Load More requests with the new prefetching feature.
The following shortcode was used to create the Table of Contents example.
[ajax_load_more preloaded="true" preloaded_amount="2" posts_per_page="2" pause="true" scroll="false"]
The following Template was used to create the Table of Contents example.