Ad spots

Posted in: Newspaper
Post count: 93

I’m curious about the code you use for the sidebar Ad seen here http://demo.tagdiv.com/newspaper/asus-xonar-u7-sound-card-hassaba-a-built-in-headphone/ It goes from 300×300 to 250×250, etc. Could you paste the Google code that looks like this?

<style>
.app-comrade-sidebar-responsive { width: 320px; height: 50px; }
@media(min-width: 500px) { .app-comrade-sidebar-responsive { width: 468px; height: 60px; } }
@media(min-width: 800px) { .app-comrade-sidebar-responsive { width: 728px; height: 90px; } }
</style>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- App Comrade Sidebar Responsive -->
<ins class="adsbygoogle app-comrade-sidebar-responsive"
     style="display:inline-block"
     data-ad-client="XXXXXX
     data-ad-slot="XXXXXXX"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>

I will replace the necessary ID’s with my own. I just have no idea how to customize the Google responsive ad unit.

Also how can I use the theme to insert inline advertisments after the title? The settings only lets you insert inline ads after ‘X’ amount of paragraphs. Would ‘0’ paragraphs insert inline ads right after the title?

Thanks and happy new year,

-Octavian

Post count: 3343

Hello,
You can use the google responsive ad to create responsive Ad spot and use in sidebar http://import.tagdiv.com/newspaper/doc/ads.html#resp-ads or use Asynchronous ads is responsive.

For above content ad read here: https://forum.tagdiv.com/how-to-add-ads-in-front-of-and-behind-the-contents/

Hope this help!
Happy New Year!!!

Post count: 93

Thanks that worked for me.

I’m curious I can make the Ad function insert code after the content, yet still before the Shareaholic plugin?

function my_function($content) {
$content = ‘<p>top_ad</p>’ . $content . ‘<p>bottom_ad</p>’;
return $content;
}

Anything inside the “bottom_ad” code above comes after Shareaholic. http://screencast.com/t/3670HzvAr

Should I look into the Shareaholic code if this is beyond the scope of your theme’s support?

Also what file should I edit (or function should I create) to add an Ad unit at the top of category pages like this one http://appcomrade.com/category/app-reviews/featured-apps/

This is an example of what I’m trying to do on category pages http://screencast.com/t/vNiWaJeO8ZM

Post count: 3343

Hello,
You can edit the menu_header.php located in parets/header add at the end of the file a condition like

<?php if(is_category()) {
your code here
}
?>

Thanks

Post count: 93

Awesome, thanks.

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