The easiest way to install your Viral Loops campaign in your WordPress website is to use the Viral Loops plugin for WordPress.
The plugin adds a Viral Loops block to the Gutenberg editor (default WordPress editor) and to these page editors:
Elementor
Divi Builder
WPBakery
That way, installing your campaign is as simple as dragging and dropping the Viral Loops block in the page.
The plugin supports all Viral Loops templates except the Altruistic Referral, Viral Loops for Shopify and the Newsletter Referral.
Instructions
In your WordPress Admin, go to Plugins and click “Add New”. Find Viral Loops in the marketplace and install and activate it.
Find Viral Loops on the left sidebar and add a new campaign. It will ask for your secret API token. You can find that in the Installation step of the Campaign Wizard. Only one campaign can be active at any time.
Edit the page where you want to install your campaign.
Find the Viral Loops block in the builder you are using (Gutenberg, Elementor, Divi, WP Bakery) and add it in the page.
From the dropdown that appears, select the widget that you want to add. The dropdown only shows widgets that are available for the template you have installed.
Publish the page and you’re ready!
Visitors that get to the page will see the Viral Loops Widgets and can join the campaign or see rewards they have won.
Using shortcodes
If you are not using any of these page editors then you can also use shortcodes to embed the widgets in your WordPress pages. These are the relevant shortcodes for each Viral Loops widget:
Form Widget |
|
Milestone Widget |
|
Popup Trigger |
|
Referral Count Widget |
|
Reward Stats Widget (for Refer a Friend) |
|
For the Leaderboard / Tempting Giveaway / Start-Up Prelaunch templates, you need to install the pop-up trigger and the referral count widget.
Screenshots
Did this article help? Let us know 😊