2 blocks of google ad

Posted in: Newsmag
Post count: 52

Hi,
I would like to have in the ‘Article Bottom Ad’ two square google blocks nearby.
I created these two square blocks 336×280 and added them with extra code:
<div style=”float:left”> AD BLOCK </div>
<div style=”float:right”> AD BLOCK </div>
But it shows only one square block.

Could you please advise and help with the issue?

  • This topic was modified 10 years by Novaque.
Post count: 6535

Hi

To display two ads by 336px width side by side it’s need a container by unless 672px. Now the post content container have 640px and changing it would require changing all theme’s elements which is a complex task and involve lots of customization in theme’s code. Unfortunately we cannot offer custom work at the moment so if you need this my advice is to look for a developer from sites like: http://studio.envato.com/ to do it for you.

Thanks for the message!

Post count: 52

Andrei,
Thank you, so if I reduce the size of each ad, for instance, to 320 + 320, will it be possible?

Post count: 6535

Hi

If you’re using adsense code a solution would be to add the code in Theme Panel > Ads section in theme’s custom ad spots: http://screencast.com/t/DjDIQo9UEc7 and use do_shortcode function in every post template files corresponding with the post template used – http://screencast.com/t/OnJ6x0h0Z to display the ads.

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

Also you will need this custom css – http://screencast.com/t/uuiWen8QXqXg

.td-g-rec-id-custom_ad_1, .td-g-rec-id-custom_ad_2 {
float: left;
margin: 0 0 20px 20px!important;
}

Note that I didn’t test this on every post template so you may need additional customization and if you don’t know how to do it yourself I suggest to hire a professional developer from sites like http://studio.envato.com/ as we cannot provide custom work.

Thanks!

  • This reply was modified 10 years by Andrei L..
  • This reply was modified 10 years by Andrei L..
Post count: 52

Thank you, Andrei
It works!

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