moving ad units

Posted in: Newspaper
Post count: 12

Hi
Great theme guys we are loving it!
I was wondering if you could advise where in the code we would update the post in order to move the ad placement from below the featured image to above the featured image
cheers

Post count: 3343

Hi,
Add this code: echo td_global_blocks::get_instance('td_ad_box')->render(array('spot_id' => 'custom_ad_1'));

like here: http://screencast.com/t/aq1m6kVcohE

And use from Theme panel -> Ads the Custom AD 1

Thanks for the message!

Post count: 12

thanks Marius

I would ideally like to move the Article top ad in this position rather than creating a new ad placement.
Can you please advise where the Article top ad is currently located
cheers

Post count: 3343

Hi,
Comment this line: http://screencast.com/t/ne3HHtTIY

The make the above change but with this code:
echo td_global_blocks::get_instance('td_ad_box')->render(array('spot_id' => 'content_top'));

Then you can use the Article top

Post count: 12

thanks Marius it worked a treat!
🙂

Post count: 12

Hi guys
We are now using Newspaper 3.9.1 and wanted to move the header banner out of the header file and into the page content.
see – http://www.screencast.com/t/knaHTWJTmY
We have successfully removed this from the header file just wanted to ensure we have the correct coding for placing in post/page/category pages.

thanks

Post count: 6600

Hi,

Do you want to add an ad above the content on post/page/category pages?
For post you can use the Top Article Ad from Theme Panel -> Ads
For Pages and Category Pages you need to add the ad directly in the template file using this:

<?php echo do_shortcode('[td_ad_box spot_id="custom_ad_1"]'); ?>

In page.php file and category.php file
Hope this helps

Thanks

Post count: 226

I would like an additional article inline ad, how can i set it up?

Post count: 6600

Hi,

The inline ad display after a number of paragraphs, if you want an additional ad you need to customize the code here: http://screencast.com/t/QABtahi1jkr4 but is not easy.

A simple solution if you want another ad in post is to add it manually directly in post using the ad shortcode like: [td_ad_box spot_id="custom_ad_1"]

Also you have in Theme panel settings for top or bottom article ads.

Hope this helps!
Thanks!

Viewing 9 posts - 1 through 9 (of 9 total)
The forum ‘Newspaper’ is closed to new topics and replies.