Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #21087

    I am trying to place some ad blocks into my post through a plugin called Adrotate.

    The code is placed in the plugin and I include a shortcode.

    However the add is cut off eventhough it should fit. I have tried 458x 15 and 336 x 228 but both get cut off

    Below is the link

    http://www.lifecleansing.net/eat-400-600-carlorie-meals-to-lose-weight/

    #110405

    Hi natclarke,

    The code you have to force the height of the iframe needs to have the height specified as well:

    ins iframe {
    width: 336px !important;
    height: 280px !important;
    }

    Regards,

    Devin

    #110406

    Thanks the add block 336 x280 works

    However I placed in the code for the 458x 15 ad block and it still cuts it off

    ins iframe {

    width: 458px !important;

    height: 15px !important;

    }

    #110407

    Hi natclarke,

    I checked your site and the code Devin worked perfectly. The code you pasted above uses 15px in height, will surely cut off as it is too small.

    Regards,

    Ismael

    #110408

    What code do I use then for a 458 x 15 block?

    thanks

    Natalie

    #110409

    Hi Natalie,

    If you are using multiple different sizes of ads then the containers will need to be targeted individually. Eg, you could only use the above css once, but if it gets pointed at specific ads then it could be added multiple times.

    Regards,

    Devin

    #110410

    How do you do that? The ads are on every page and post.

    cheers

    Nat

    #110411

    It sounds like whatever code is inserting the ads is working incorrectly if its happening everywhere. The code from the actual ad is what is causing it to appear incorrectly, the css fix above is just something I saw that could force a fix on that page because the ads own code was wrong.

    Regards,

    Devin

Viewing 8 posts - 1 through 8 (of 8 total)

The topic ‘Ad block cut off in post’ is closed to new replies.