Quantcast
Channel: tagDiv support
Viewing all articles
Browse latest Browse all 280

How to insert Ads in custom areas of the website!

$
0
0

NOTE – To insert Ads in custom areas of the website you will need to edit the core files of the theme.

WARNING – If you want to Update the theme after you made custom changes to the core files all your changes will be lost!

Adding custom Ads under the menu and before the footer.

1. Go to Theme Panel > Ads and set the ad section that you want to use. We will use Custom ad 1 but you can use any of the ads sections.

custom-ad-single-post

2. You will need to create a New Page and insert the Ad box block from Visual Composer.

  • From the pop-up select the Ad Section that you set it from the Theme Panel, in our case Custom ad 1
  • After you inserted the Ad box block switch to Classic Mode and select the Text tab.
  • You will need to copy the shortcode from here. This will be the code that you will insert in page were you want your ad to be visible.

ad-box-sortcode

3. After you have the shortcode you need to go in the theme core files and put the code were you want to be visible on your page.

  • In our case we need to go to single.php

The code that you need to use is:

<?php echo do_shortcode(' '); ?>

 

Inside this function you can add any other shortcode from our theme.

We will use the shortcode from the Ad box that we copied from the wordpress editor.

In our case the final code is:

1. Insert Ad under the Menu

under-the-menu

2. Insert Ad before the Footer

before-footer

4. Example how the Ads are positioned under the menu and before the footer

Under the Menu

under-the-menu

Before Footer

before-footer


Viewing all articles
Browse latest Browse all 280

Trending Articles