Support » Plugin: Useful Banner Manager » Banner/Div Height

  • Ruben,

    I have some small issues with banners after install and was wondering if you could help.

    I have place the code in the templates for page and posts:

    <?php if ( function_exists( ‘useful_banner_manager_banners_rotation’ ) )
    { useful_banner_manager_banners_rotation( ‘1,2,3,4,5,6,7,8,9,10’, 8,
    ‘rand’ ); } ?>

    At first I specified width and height but noticed this caused problems on tablets and mobile so removed them, then made sure that the sizes were removed from each banner as well.

    All went back to fitting correctly for each device but for some reason the div holding the banner is always set to 180 height, leaving a gap underneath.

    This can be seen at the bottom of this page:

    The second issue is to do with the ‘rand’ operator, which does not seem to be working either. The banners actually seem to be showing in reverse ID order on every load, definitely not random.

    Thanks for any help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • I forgot to add that the CSS on the page seemed to be indicating this was something inline rather than CSS controlled. I checked in the plugin editor and found some references to ‘180’ but I’m reluctant to alter these.

    <div id=”useful-banner-manager-banners-rotation-n1″ class=”useful_banner_manager_banners_rotation” style=”overflow: hidden; width: randpx; height: 180px;”><div id=”10_useful_banner_manager_banner” class=”useful_banner_manager_rotating_banner” style=”display: none;”>……..</div>

    This is the div concerned in the HTML.

    Seeing this the rand operator is being picked up as the width instead of the random. I see from the code that the deaults are set to 180 if no values are entered.

    Is it possible to use the rand operator but also have your ads render at their actual sizes?

    Plugin Author Ruben Sargsyan



    Please contact me via form and I’ll try to help you.


Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Banner/Div Height’ is closed to new replies.