Ads Shortcode ?

Posted in: Newsmag
Post count: 12

Hello,

I put an HTML code to display an ad in “Custom ad1”.
Is it possible to put this advertisement in an article with a shortcode?

Thank you very much

Post count: 23312

Hello F3rious,

Yes, if you want to do this, you should use the do_shortcode method and add it inside your post and if you want to have this ad inside to your all posts which are part of certain post template, you should edit the theme core file according to your post template used by you. The code is here -> <?php echo do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]'); ?> If you want to add directly the code inside the post, you should do this -> http://screencast.com/t/infK2eNQlf8k Also, if you are using the post template style 1 you should edit the loop-single-1.php like this -> http://screencast.com/t/b8FBqZmb and there you should ad the code where you want to appear on the page.

Thanks for the message!

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