Disable The Theme from making Adsense responsive

Posted in: Newsmag
Post count: 15

Hello,

I couldn’t find this in the options or anywhere here but is there a way to stop the theme from defining the Adsense sizes? I know the theme automatically resizes Adsense. But I need to disable the theme from doing it.

Basically I want Adsense ads and custom ads to be recognized as the same type of units.

Thanks,
Louis

Post count: 6535

Hi

This is a complex task which require lot’s of customizations in theme’s core files and I can’t provide a solution now. You can edit in td_block_ad_box.php the function which render google ads: http://screencast.com/t/2EOFYCObllhttp://screencast.com/t/BG7KnS69 if you want. If you’re not aware of the steps you need to take in this regard please consider hiring a developer or a freelancer to do this for you as we can’t offer speed customization services at the moment.

Thanks!

Post count: 15

Thanks Andrei,

That’s the file I was looking for. I’m pretty lazy so I just swapped the snippet that renders the google ad to the same code that renders the normal ad. So far it’s working.


if (!empty($ad_array[$spot_id]['current_ad_type'])) {
switch ($ad_array[$spot_id]['current_ad_type']) {
case 'other':
//render the normal ads
$buffy .= $this->render_ads($ad_array[$spot_id], $atts);
break;
case 'google':
//render the magic google ads :)
$buffy .= $this->render_ads($ad_array[$spot_id], $atts);
break;
}
}

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