eKawazoe 252 Posted July 22, 2015 Report Share Posted July 22, 2015 Кто-нибудь сталкивался с проблемой размещения адаптивных баннеров adsense? В теле статьи ну никак не хочет вставать. Всегда получается одна и та же хрень. Использую коды на основе <style>.my_adslot { width: 320px; height: 50px; }@media(min-width: 500px) { .my_adslot { width: 468px; height: 60px; } }@media(min-width: 800px) { .my_adslot { width: 728px; height: 90px; } }</style><script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script><!-- Адаптивное объявление адсенс --><ins class="adsbygoogle my_adslot" style="display:inline-block" data-ad-client="ca-pub-456456456456456" data-ad-slot="456456456"></ins><script>(adsbygoogle = window.adsbygoogle || []).push({});</script> p.s. в CSS не секу. Quote Link to post Share on other sites
dontfear 762 Posted July 22, 2015 Report Share Posted July 22, 2015 Не видя сайта тяжело сказать, попробуйте добавить float:right;position:static; eKawazoe 1 Quote Link to post Share on other sites
Amenhotep 23 Posted July 22, 2015 Report Share Posted July 22, 2015 Воспользуйтесь официальным плагином AdSence, зачем париться попусту. Он удобный вполне. Quote Link to post Share on other sites
seosko 57 Posted July 22, 2015 Report Share Posted July 22, 2015 можно обрамить его в div Quote Link to post Share on other sites
eKawazoe 252 Posted July 22, 2015 Author Report Share Posted July 22, 2015 Воспользуйтесь официальным плагином AdSence, зачем париться попусту. Он удобный вполне. Попробую. можно обрамить его в div Не помогает. Quote Link to post Share on other sites
VIP campusboy 912 Posted July 22, 2015 VIP Report Share Posted July 22, 2015 Мне официальный плагин от самого Адсенс понравился, но он не столь гибкий, как хотелось бы, потому использую плагин Easy Plugin for AdSense, в нем сразу можно указать и отступы, и центрирование. Много настроек в общем, но самое главное - в нем можно указать, что если статья, к примеру, более 800 слов, то разместить ещё один блок рекламы по середине статьи. Ну и подобных примочек там много. Проблем с этим плагином не обнаружил, очень понравился. Quote Link to post Share on other sites
applepeace 11 Posted July 22, 2015 Report Share Posted July 22, 2015 Adsense Inserter - вставляешь код Adsense, тебе даётся шорткод и этот шорткод пихаешь в тело статьи в нужные места. Отличный плагин. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.