Hello,
Love your theme.
So I would like to place “custom ad 1” in the middle of a article. Is there a shortcode or way to place these custom ads in a article? Each article is different, so I do not want to use the pre-built article ad placement.
I read the documentation and could not find such a option.
Regards,
-
This topic was modified 9 years by
elcid.
Hello elcid,
If you want to add the “Custom Ad 1”, you should use the do_shortcode method and place it in theme core file corresponding to post template used by you. For example, if you are using the post template style 1, you should use the following steps in order to achieve as you wish. This is the code – make sure you have an ad code placed in Theme panel->Ads->Custom ad 1 – https://www.screencast.com/t/Mw29z93l9 and then using this snippet of the code
<?php echo do_shortcode('[td_block_ad_box spot_id="custom_ad_1"]');?> you should add it in loop-single-1.php, where exactly you want to display the add, like this -> https://www.screencast.com/t/eyu4sGgDh
Hope this helps!
Thanks for the message!
Hello,
Thanks for your help. This I have managed to do, but I would like to add the tag to a specific article location, there is that possibility.
Hello pedroarmindo1,
If you want to use this shortcode on posts, you should simply use it, without PHP tag and do_shortcode method because the WordPress will render it, like this -> https://www.screencast.com/t/KJh1jdJwqSC
Thanks for your understanding!
Thanks, but I don’t received my ads.