In version 1.2 of Referrals for Prizes, we’ve added iframe detection so that you can embed the script into any WordPress site.
Embed Referrals for Prizes directly into your WordPress site:
Referrals for Prizes can also be embedded directly into a WordPress page like so:
Here’s the code:
<div class="iframe-div"><iframe src="http://www.yourdomain.com/referral/referral.php" width="100%" height="400"></iframe></div>
In this other example, I’ve decided to you show how to embed the script into a WordPress blog using the plugin Easy FancyBox.
How to create a fancy box link to your referral page:
Simply add the class below to your link:
class="fancybox-iframe"
The link should look like this:
<a class="fancybox-iframe" title="Referrals for Prizes" href="http://www.yourdomain.com/referral/referral.php">Referrals for Prizes</a>
End result looks like this:
How to create a fancy box link using an image:
Simply add the fancybox-iframe class to the link around the image. It should look something like this:
<a class="fancybox-iframe" title="Get a Free Gift!" href="http://www.yourdomain.com/referral/referral.php"><img src="http://www.yourdomain.com/yourimage.png" alt="free-gift" width="287" height="300" /></a>
Or how about a button? Easy enough…
Not any different from the code above…
<a class="fancybox-iframe" title="Signup Button" href="http://www.yourdomain.com/referral/referral.php"><img src="http://www.yourdomain.com/yourimage.png" alt="Signup Button" width="287" height="300" /></a>