Viewing 15 posts - 1 through 15 (of 21 total)
  • Author
    Posts
  • Saguaros Moderator
    #884874

    Hi Giuliano,

    Did you try to switch default template to a standard template of Joomla (beez, protostar) and check this ADS in above article again?

    And let me know how it goes.

    giuliano m Friend
    #886386

    Hi Saguaros ^^ and thx good advice but it works with protostar

    tonight I try to disable all plugins and component, only Teline template.

    Saguaros Moderator
    #888865

    I see the ads looks fine at my end: http://prntscr.com/a6s2xa

    Is it OK now?

    giuliano m Friend
    #889983

    no, the banner should be 300x250px if you resize the desktop window you see that the banner is cut in half

    mobile http://prntscr.com/a7jxla desktop http://prntscr.com/a7jy2z

    please help me is very important

    Saguaros Moderator
    #890643

    Please check in real device, resizing browser is not a proper way to test the responsive layout.

    giuliano m Friend
    #891013

    Same problem unfortunately


    1. Screenshot_2016-02-26-20-03-19
    aris Friend
    #892133

    and so my website. same problem

    Saguaros Moderator
    #892155

    May I know how you guys add the Google Ads into your sites? You can clarify step by step and post the script you used here so I will try to replicate at my end. At this moment, the style is loaded from google itself.

    giuliano m Friend
    #892252

    Hi,
    I use the plugin Ads Elite, this inserts the script adsense directly ( it uses Paragraph delimiters are <.p>)

    However I have also tried inserting the google script directly but I have the same problem.

    important the banner is cut only when it is included in the article, if I put the banner in a different position(forexample in the comments) the banner is working properly.

    aris Friend
    #892266

    here is mine.. `(image attached)

    <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>

    <ins class="adsbygoogle"
    style="display:block"
    data-ad-client="ca-pub-1985477490972945"
    data-ad-slot="6769983490"
    data-ad-format="auto">
    <script>
    (adsbygoogle = window.adsbygoogle || []).push({});
    </script>`


    1. cuttedAds
    Saguaros Moderator
    #892801

    Could you check script again? it seems to be not correct and where you insert this script?

    giuliano m Friend
    #892906

    the code is inserted into the text of the article.

    ex.

    
    <p>Nella tarda serata di ieri,......senza alcun motivo, contro uno ..........</p>
    <p>
    <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js">&lt;/script&gt;
    <ins class="adsbygoogle"
         style="display:inline-block;width:336px;height:280px"
         data-ad-client="ca-pub-6364xxxxxxxx"
         data-ad-slot="8625422659"></ins>
    &lt;script&gt;
    (adsbygoogle = window.adsbygoogle || []).push({});
    &lt;/script&gt;
    <br />Bloccato grazie all’intervento del secondo militare è stato tratto in arresto e trattenuto, .......</p>
    timtecsa Friend
    #892943

    @saguaros,

    Just to make your day, my 300×250 html5 banner gets cut in half too on phone.. This is placed via Banner component and Banner module in usual way but a custom, not image in Banner component, actually a Wrapper module then placed in article with a Modules Anywhere link to Banner module. Complicated but works on desktop view. See A copy of the ad in position footer 3 does not get cropped at bottom.

    The 728 wide banner in the footer just gets cropped on right as you might expect. Probably I should hide this position in small screen view.

    Pankaj Sharma Moderator
    #892976

    Hi @giuliano m
    Try my solution below to fix this problem .
    Add below code in custom.css file

    
    @media (max-width: 768px) {
    .article-content iframe {
        height: 100%!important;
    }}

    Add code at the start of custom.css file . Save file clean cache and check .
    Hope it helps .

    giuliano m Friend
    #893024

    Hi Pankaj Sharma and
    thanks for the help, but I’ve tried it, (I deleted the cache;)) Unfortunately, it is always cut.

Viewing 15 posts - 1 through 15 (of 21 total)

This topic contains 21 replies, has 6 voices, and was last updated by  redcrecer6971 8 years, 7 months ago.

The topic ‘adsense banner is cut in half with mobile layout’ is closed to new replies.