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.
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:
Option 1: #
You can create ads in WP QUADS from the tab WP QUADS -> Ad Code.
There you also find the name of the shortcode of a particular ad. Copy and paste that code into your theme template file in place where want to see it later in the front page of your website.
Copy and paste the PHP Shortcodes in the corresponding theme template file, e.g. page.php, single.php, header.php and so on:
<?php echo do_shortcode('
You find the theme files in
Common theme files are:
- header.php – The top of your website incl. logo
- footer.php – The bottom of your website
- archive.php / category.php – A list of posts
- page.php – The page single page template
- single.php – The blog single post template
Ask your theme developer if you are unsure about the correct template file name.
Option 2: #
Register an ad spot by adding a little snippet of code into your theme file functions.php:
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: