Custom Ads

Posted in: Newspaper
Post count: 89

Hi,

How to add custom ads inside the loop ?

I look in documentation but there is no documentation on this. I suspect there is a shortcode for this?

Thanks

Post count: 1291

Hi,

You have to add it inside the loop.php file – http://screencast.com/t/6YLFcO3Vhttp://screencast.com/t/LfA5kbiMNG3C
To make it display only on category pages or only after 2 or 3 posts you have to create conditions. If you don’t know how i suggest that you look for a professional developer to help you with this task.

echo td_global_blocks::get_instance('td_block_ad_box')->render(array('spot_id' => 'custom_ad_1'));

Thank you!

  • This reply was modified 11 years by Emil G.
Post count: 89

How would i add a custom ad placement on post below bottom share buttons?

i’m using this: <?php echo td_global_blocks::get_instance(‘td_ad_box’)->render(array(‘spot_id’ => ‘custom_ad_1’)); ?>

but it’s not showing

Post count: 7909

Hi,

Please use the same code that Emil provided above, just add also php tags – http://screencast.com/t/ftC76A4PIOXhttp://screencast.com/t/r6J2xOGA9

<?php echo td_global_blocks::get_instance('td_block_ad_box')->render(array('spot_id' => 'custom_ad_1'));?>

Thanks!

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