Cookbook
Mr. Pickles the AdPlugg Pug

Creating Multiple Ad Zones on Wix Using the Snippet

This recipe shows you how to add two ads to two different ad zones on your Wix site using the AdPlugg Snippet. This recipe uses two Ads and two Zones but you can use it to add any number of Ads and Zones. The recipe uses the AdPlugg Ad Snippet (which will work on any site) but this recipe has instructions that are specific to a Wix site.

Important Note

As of this writing, Wix only allows you to add custom HTML/JavaScript via the Wix "HTML iFrame". The Wix HTML iFrame inserts your custom code inside of an iFrame.  This limits AdPlugg (and any other code inserted using this method) to working within the iFrame only.  This means that ALL of the AdPlugg code must reside within the iFrame because it will be "sandboxed" inside of it, unable to access other parts of the page.

Create An Ad and Zone in AdPlugg

  1. First, we'll create a Zone. From within your AdPlugg account, create a new Zone. Give the zone a descriptive name for where you want it to appear, such as right sidebar. See the Ad Zone Help Page for more info about creating Zones.
  2. Next, create an AdPlugg Ad. From within your AdPlugg account, create an Ad and upload an ad image  From the Zone Targeting section near the bottom, target the Ad to the Zone that you created in step 1. Save the Ad. See the Ad Help Page for more information about creating AdPlugg ads.
  3. Repeat steps 1 and 2 for an additional ad and zone. Note that you can do as many of these as you want. See the end of the recipe for info about ad rotation, etc.

Add the AdPlugg Zone to your Site

Next we are going to add the AdPlugg SDK to your Wix site.

  1. Log in at wix.com.
  2. Select your site.
  3. From the Site Actions dropdown, choose "Edit Site".
  4. From the Wix site editor, click the Add (+) button.
  5. Go to More and under "Embeds", choose "HTML iFrame".
  6. Place the Wix HTML iFrame box where you want the ad/ads to appear.  
  7. Resize the box to fit your ads.
  8. If you want the ads to appear on all pages, right click on the box and enable the "Show on all pages" setting.
  9. Click the "Enter Code" button.
  10. From within your account at adplugg.com, click Download and then Snippet.
  11. Click the "Get The Snippet" button.
  12. Copy the AdPlugg SDK and the AdPlugg Ad Tag for the particluar Zone that you want and paste it into the "Add your code here" box in the the Wix Site Editor.
  13. Repeat steps 4 through 12 for your second Zone.
  14. Click the Apply button to save your code.
  15. Save and publish your site.

You should now be able to see the ads live on your site.

More Ideas!

As mentioned above, you can use the above instructions to create any number of Ad Zones. For example, you could create a "Right Sidebar" Zone a "Header" Zone and a "Footer" Zone. See our Ad Rotator recipes for instructions on how to rotate Ads in and out of the Zones.