Site icon TheCreatology.com

How to Add New Ad Slot in WordPress Theme using Adrotate Plugin

An Advertisement-Ready Website, a recent project by TheCreatology, was configured with Adrotate Plugin. The plugin has extensive features for Ad management, Click Tracking & Campaign Management etc. with detailed reporting, which also we will be using in our Tutorial. This tutorial is a request from a client, which is Quick-n-Easy tutorial, as we will learn to add new advertisement slot using adrotate in WordPress theme.

Add New Ad Slot Using Adrotate

For your ease, I have divided this tutorial into three sections: 1) Add/Install Adrotate Plugin, 2) Add/Create New Ads with Adrotate & 3) Display Ad Slot Code in Theme

Step 1: Add/Install Adrotate Plugin

To install WordPress Adrotate plugin, login to WordPress dashboard:

Install Adrotate WordPress Plugin

Now that we are done with the installation of plugin, we can move on to create new ad banners.

Step 2: Add/Create New Ad Banner with Adrotate

Adding new ads is just a click-a-way thing and a bit of focus is required. Follow quick steps below:

Navigate to Adrotate Management Screen

Add new Ad unit

Step 3: Display Ad Slot in Theme

In our previous step, we added Ad Unit, where as this step will integrate Ad Code in theme. Adrotate Ad Unit can be displayed in two ways: 1) Using Adrotate Widget & 2) Using Short Code or PHP Code

USING ADROTATE WIDGET

This is an easy method and recommended option for people who don’t like to code. Follow simple steps below to display ad slot using adrotate widget:

Display Ad in Sidebar using Adrotate

USING pHp CODE

A bit complex method, as you either need to have developer skill-set or a developer to fix it, as a slight mistake may end up breaking theme layout or crash the website. The method comparatively is more flexible than Adrotate Widget method, as you can display any size Ad Unit anywhere in your Theme. To do so, follow steps below to display ad slot using php code:

Adrotate Ad unit PHP code

We’re Done

Now that you have added ad unit code in the theme, refresh webpage to preview the ad slot. Works fine ? Bravo, we are done with the tutorial.

Not Working ‘eh ? Recheck the codes, make sure you have uploaded the right file and clear cache, in case you are using cache plugins. Go through the Step 2 & Step 3 again, till you see the ad unit live in action. 😉

In this tutorial we learned about adding a new ad slot in WordPress Theme using Adrotate Plugin. If you have any queries or further assistance is required, post us your feedback using the comment form below.

Exit mobile version