Add´s with Style not run in theme ¿Why?

Posted in: Newspaper
Post count: 460

Hello,

I add this code in ADS 5 (theme panel): http://pastebin.com/KgYfPtaz

This code: <style>
.menubajo { width: 320px; height: 100px; }
@media(min-width: 500px) { .menubajo { width: 468px; height: 60px; } }
@media(min-width: 800px) { .menubajo { width: 728px; height: 90px; } }
</style>
<center>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- menubajo -->
<ins class="adsbygoogle menubajo"
style="display:block"
data-ad-client="xxxxxxxxxxxxxxxxxxxxxxxxxxxx"
data-ad-slot="xxxx"
data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script></center>

I add this ADS 5 in home page, only home page. But nor run ok, because dont respect the size of style.

Here: https://s16.postimg.org/4uqnn9xn9/error01.jpg

You can see, thats size style not run. I put here:

https://s4.postimg.org/5scripq31/posicion_home.jpg

My web: https://goo.gl/CKI3O0

Now I diosable this,. beacuse I dont want a square ad. I can send you acces if u need.

Thanks, Jose

PD. Just today I extended the support 🙂

Post count: 22421

Hello,

Adsense does not work by altering the size with css. You will have to simply add the adsense code without the css in the theme ad spots and then select the size you want for the ad from the size selectors in the ad section: http://screencast.com/t/qwNuO4SeFj

Thank you!

Post count: 460

One time more…..

Thanks a lot my friends, all team are fantastic, thanks 🙂

PD ¿How can I put “resolved” in this topic?

Post count: 22421

Hi,

No problem! We will change the topic to resolved as only the forum admin can do it.

Thanks.

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