How to call Ad Unit In PHP

Posted in: Newspaper
Post count: 23

If i want to add an ad unit in the php files what is the exact code i’ve to write. ?

Post count: 23312

Hello mahmoudfathymohamed,

If you want to add some ads on your website and you do not have more settings about the specific place where you want to add the ads, you have to introduce them using do_shortcode method. First of all, please notice that you have inserted the ad code in your custom code 1,2,3,… from your Theme panel, like this -> http://screencast.com/t/YEBdvQZldkY and then you have to use this code ->> <?php echo do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]'); ?> and paste it in the corresponding file to the desired place.

Hope this helps!

Thank you for the message!

Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.