Header Ad Not Centered with Cloud Templates

Posted in: Newspaper
Post count: 128

Since switching to Cloud Templates, the header ad (Google AdSense) seems to not be centering on phones. Is there a custom code or anything else for this that won’t affect other ads on the page that are fine?

Example: https://www.vitalthrills.com/2019/03/19/nicolas-cage-martial-arts-jiu-jitsu/

Post count: 22421

Hello,

This issue was generated by google as it seems all 300 size ads are affected by this.
Please try to add this custom css code to the theme panel

.adsbygoogle{
margin-left:0!important;
}

Thank you!

Post count: 128

That’s what I’ve used before, but since I now use Cloud Templates, that would fix the Header Ad, but then would align some of the other ads to the right. Is there away to only center the Header Ad?

Post count: 20688

That code should apply to all adsense ads. I can see that it causes problems with the ads that are displayed properly when used. So while it fixes the header ad issue
http://prntscr.com/n0hwua
It causes problems for the other ads – http://prntscr.com/n0hx6l

I could modify the code to affect only the header ad, this way the other ads will look alright

.td-header-sp-recs .adsbygoogle{
margin-left:0!important;
}

Let me know if you have more questions.

Post count: 128

Thanks Simion! I’ll give that a try.

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