No matter if you are a website owner, if you are a theme developer on wordpress.org or themeforest.net, if you want to extend your theme with a powerful advertising system you can integrate WP QUADS very easily. A few of the most popular themes are already using WP QUADS like the Bimber theme
Most themes offer specific advert positions to show ads below, above or beside special content elements like sidebars, headings, featured posts boxes and many more. They also need a system to show ads only for desktop and mobile devices.
You can create new ad spots in your theme which can be controlled 100% by WP QUADS. To do so you can use either the shortcode of an WP QUADS ad directly into any of your theme template files or you use a dedicated function which properly registers the ad location into your theme with additional control options:
Use PHP Shortcodes in template file:
<?php echo do_shortcode('[quads id=1]'); ?>
Register ad in theme file functions.php
Option 1 – Using a shortcode
You can enter AdSense code under the tab WP QUADS -> AdSense Code. There you also find the name of the shortcode of an ad. Copy and paste that code into your theme template file in place where you want it to appear.
Option 2 – Register an ad spot in your theme
To register a fixed place in your theme which you can control via WP QUADS just copy and paste the following code into your functions.php (You find that file in the main theme folder)
You can modify the value of location and description to your need but make sure that location must be a single word and must not contain any special or space character.
Next open your desired theme files.
In this example we are adding custom ad places into your themes header and footer. The corresponding theme template files are called in most themes footer.php and header.php.
Use the code below and paste it there where you want to show a custom WP QUADS ad position on your site. Here we use the header ad spot.
After reloading you can control the ads on this position from your WP QUADS global settings: