Call to Actions
Insert advertisements and content blocks into an Ajax Load More query
The Call to Actions add-on provides functionality for injecting unique templates into an Ajax Load More query.
Easily include a custom Adsense advertisement block or call to action within each Ajax Load More post loop.
Features
A few key features of the Call to Actions add-on for Ajax Load More.
Advertisements
Generate revenue by injecting advertisements (Adsense etc.) as visitors load Ajax content.
Sign-up Forms
Increase engagement by inserting sign-up forms between content within the Ajax listings.
Featured Content
Call out important and relevant information to your visitors directly in the Ajax load content.
Add-on Details
Learn more about the Call to Actions add-on.
How It Works
The Call to Actions add-on works by providing an intuitive and user-friendly method for website admins to inject advertisements or call to actions directly into the results of each Ajax Load More query.
It’s as simple as choosing a display position within the loop and then selecting the Repeater Template that holds the call to action content.
Call to actions can be anything you want them to be… an advertisement, a featured article, or even a sign-up form – it’s up to you to decide.
Note: This add-on requires an additional Repeater Template add-on for rendering call-to-actions.
Implementation
The process for injecting call-to-actions into Ajax Load More results can be divided into two tasks.
- Creating a Template
This task will involve the creation of a custom template that will hold the content or HTML container of your call to action. - Building a Shortcode
With the Shortcode Builder, it’s as easy as selecting your call to action template and then choosing the injection point within the Ajax Load More loop.
Working with Advertisements
The majority of ad networks require JavaScript to trigger the display of their ads. Making use of the almComplete callback function may be required to load advertisements on the Ajax-loaded content.
Examples
The following examples will provide an idea of what can be done with the Call to Actions add-on:
Adsense
Displaying advertisements from Google Adsense with Ajax Load More.
Featured Content
Displaying a featured Ajax Load More add-on based on the current $alm_item value.
Random Quote
Using the almComplete callback function to inject a random quote call to action into Ajax Load More results.
Template
Inserting a call to action into Ajax Load More results will require a unique Repeater Template. This template holds the content of your CTA and will be injected into each loop at the position specified in the shortcode.
A typical CTA template is constructed similarly to standard Ajax Load More templates and may include custom WP_Query, JavaScript, or even hard-coded content such as mailing list sign-ups or contact forms.
Note: Always open and close a call-to-action template with an HTML element.
e.g. <div class=’my-cta’>CTA content…</div>
Shortcode Parameters
The following shortcode parameters are available with the Call to Actions add-on.
cta | Enable call to actions. Default = ‘false’ |
---|---|
cta_position | Insert call to action {before/after} post #{x}. Default = ‘before:1’ |
cta_repeater | The Repeater Template that renders the call to action. Default = null |
cta_theme_repeater | The Theme Repeater that renders the call to action. (If activated) Default = null |
cta_position is a colon-separated value where the first value is before/after and the second is the post position within the current loop where the call to action will be inserted.
Shortcode Builder
The following screenshot illustrates the process of building a Call to Action shortcode using the Ajax Load More Shortcode Builder.
Example Shortcode
Example Shortcode[ajax_load_more cta="true" cta_position="after:2" cta_repeater="template_19" post_type="post" repeater="default"]
Frequently Asked Questions
Below are common questions regarding the Call to Actions add-on. If you have a question and don’t see an answer here, please visit the support page and submit your request.
Installation
Upon purchase of this add-on you will receive a confirmation/purchase receipt email. Your receipt will contain a direct link for downloading your copy of Ajax Load More: Call to Actions and a license key.
After downloading the add-on, upload the unzipped files to your /wp-content/plugins/ directory or visit your plugins dashboard and upload the downloaded .zip under Add New.
License Activation
To activate your add-on and receive updates directly in your WordPress plugins dashboard users are required to enter the license key that was included with their purchase receipt.
To activate a license key:
- Visit the Licenses section within the Ajax Load More plugin.
- Enter the product key and click Activate License.
- If the status indicator turns green your add-on has been successfully activated (example below).
If you did not receive a confirmation email containing your license key, please check your spam/junk folder. If you still cannot locate the email, contact me at darren [at] connekthq.com or use the Product Support form.