I need some help in the Article Bottom Ad

Posted in: Newspaper
Post count: 12

Im trying to put two adsense banners (300×250) side by side and a 728×15 of links in the bottom of this two, all of this in the Bottom Article Area, but the only thing that appears it’s 1 Ad of 300×250 in the center.

I tried to put the adcodes inside this html code, <div style=”float:left;”>adsense code 1</div>
<div style=”float:right;”>adsense code 2</script></div> and nothing, also tried just pasting directly the 3 codes without the table content and still just one 300×250 showing.

How can i solve this?
Thanks

  • This topic was modified 11 years by Miguel.
  • This topic was modified 11 years by Miguel.
Post count: 12

Can anyone answer my question, please?

Post count: 7909

Hi,

Unfortunately you only one code can be added in the Theme Panel Ads section. You can try to add the codes separate in custom ads for example – http://screencast.com/t/jfHbpWeTJVN and use shortcodes in the post template file: http://screencast.com/t/HjepyqGHvg
And use some css in Theme Panel > Custom Css: http://screencast.com/t/h31va6BUcT

Hope this helps!

Post count: 12

Problem solved, thanks a lot! I had to put directly the html code for the ads in loop-single.php, in the same spot you told me to put <?php echo do_shortcode(‘[td_ad_box spot_id=”custom_ad_1″]’); ?> because it wasn’t working.

Once again thanks a lot!

Post count: 12

Is there any way to hide this code on mobile version? I just want the 2 ads to show in Desktop or tablet version, in mobile i want to put just one ad.

Post count: 7909

Hi,

For adsense code it should work options from Theme Panel: http://screencast.com/t/CRgIdbbbim
If you still have issues please provide a link, a screenshot with ads and some details about which of them you want to hide and I will try to provide a css solution.

Thanks!

Post count: 12

I can’t do it in the Theme Panel, because I had to put the code inside the loop single.php directly. Here’s a example http://www.tabrutal.pt/ve-como-eles-estao-diferentes-o-antes-e-o-depois-de-34-celebridades/

And here´s the code: http://www.screencast.com/t/1XYnmuUUk

This is all right, the problem is in mobile, i can’t have 2 ads next to another, http://www.screencast.com/t/9dQdirWFE

Thanks!

Post count: 7909

Hi,

Please try to ad the code in Theme Panel like I suggested above as I cannot target to hide it with css code and use this code to echo it in loop single(sorry that I did not posted the code above):
<?php echo do_shortcode('[td_ad_box spot_id="custom_ad_1"]'); ?>
<?php echo do_shortcode('[td_ad_box spot_id="custom_ad_2"]'); ?>

Thanks!

Post count: 12

When I do that, the ads look like this, not side by side, but one above the other: http://www.screencast.com/t/P1yfsvoaT6J5

And I want the ads like this: http://www.screencast.com/t/d5adyO8674y

The only way that i made that possible was with the code directly in the loop single, when i put the code in theme panel, with the command <?php echo do_shortcode(‘[td_ad_box spot_id=”custom_ad_1″]’); ?>
<?php echo do_shortcode(‘[td_ad_box spot_id=”custom_ad_2″]’); ?> the ads look like in the first image.

The problem is that with the code in loop single i can’t define just one ad in mobile.

Thanks!

Post count: 7909

Hi,

This issue can be solved by css code because the ads can be targeted if you use the code in custom ads(I already provided to you an idea above): http://screencast.com/t/h31va6BUcT

.single .td-a-rec-id-custom_ad_1 {
float: left;
}

And like I said you can also hide it on mobile from Theme Panel options. Let me know how it goes!

Thanks!

Post count: 12

I made all the modifications, added the css code and this is the result, please check if it is missing something, because the ads still aren´t showing side by side:

http://www.screencast.com/t/hYR0l8Zw

Thanks!

Post count: 7909

Hi,

Please try this custom css in Theme Panel > Custom Css: http://screencast.com/t/8ieUjvdSfTz0

.single .td-g-rec-id-custom_ad_1{
float: left;
}

For google adsense you have to use td-g-rec-id-custom_ad_1 instead of td-a-rec-id-custom_ad_1 as I did not use adsense in my example.
And now you can hide one on mobile screen from Theme Panel > Ads: http://screencast.com/t/OcID8FG4Ua

Hope this helps!

Post count: 12

Excellent!!! It’s all working now, thanks a lot once again for your attention!

Thanks!

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