970×250 sized Adsense ads

Posted in: Newspaper
Post count: 3

Hey,
How can I add 970*250 sized ads(Adsense) on my website? I have checked it on ‘Adsense Size’ selector but its not there. It keeps resizing to smaller ones.
So, is there any way to show 970*250 Adsense ads on my website?

Post count: 1291

Hi,

Try to add a line like this on panel_ads.php file – http://screencast.com/t/nyasQc2H5CWW

array('text' => '970 x 250 - Regional ad sizes' , 'val' => '970 x 250')

Use the new size on your ad.

Thank you, Emil G.

Post count: 3

Thanks for the reply.
Now it’s showing 970*250 size ads. But I need your help on 2 more things.

1. How can I center the ads? (the ads are automatically aligning to the left side especially when using it on smaller resolutions. Here’s my blog: http://sociobits.org/)
2. Is there any way to show 970*250 ad directly above to the post title?

Thanks!:)

Post count: 1291

Hi,

1. To center it you have to add this CSS code to your Custom CSS in Theme Panel:

.td-g-rec-id-custom_ad_3{
padding-left:52px;
padding-right:52px;
}

2. To do that you have to add this code:

 <?php echo do_shortcode('[vc_row][vc_column width="1/1"][td_ad_box spot_id="custom_ad_3"][/vc_column][/vc_row]'); ?>

to the loop-single.php file, like this: http://screencast.com/t/L5bcdJal0

Result: http://screencast.com/t/CGRi9VLbmy

Also you will have to style the ad box to lower it a bit, to do that add this CSS to your Custom CSS in Theme Panel:

.post .td-a-rec-id-custom_ad_3 {
margin-top: 30px;
}

Result: http://screencast.com/t/bzUSSMDXnws

Thank you.

  • This reply was modified 12 years by Emil G.
Post count: 3

Thank you.

The first problem is fixed.

In the second one I mean, I want to display 970*250 size ad above the title and NOT 728×90 ad.
So, when I use your above code the ad is overlapping sidebar, here’s the screenshot: http://www.screencast.com/t/ZsqeRbkuCBzk

Any fix?

Post count: 6600

Hi,

You have to move the code you have added to the loop-single.php file to the single.php file, you will also need to add along with it another code like this: http://screencast.com/t/QUp9iiKE0Z

You have the code that you need to paste in the single.php file here:

 echo td_page_generator::wrap_start();
 echo do_shortcode('[vc_row][vc_column width="1/1"][td_ad_box spot_id="custom_ad_3"][/vc_column][/vc_row]');
 echo td_page_generator::wrap_end(); 

Keep in mind that you will need to the code that you have added in the loop-single.php file if you chose to paste it from here.

Thank you

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