In this example:
Ajax Load More will use the Call to Actions add-on to insert a random quote into the results of the Ajax query.


    JavaScript
    The following JavaScript code pulls a random quote from an array and appends the quote to the .ad-callout container returned with Ajax Load More.

     

    The following shortcode was used to create the CTA Example: Random Quote example.

    [ajax_load_more cta="true" cta_position="after:4" cta_theme_repeater="custom-cta-js.php" repeater="template_36" posts_per_page="4" transition="fade" css_classes="call-to-actions call-to-actions-js" images_loaded="true"]

    The following Repeater Template was used to create the CTA Example: Random Quote example.