Ready to get started?Download WordPress


Useful Banner Manager
Banner/Div Height (4 posts)

  1. ritso
    Posted 6 months ago #


    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: http://winnerwinner.co.uk/casino/

    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!


  2. ritso
    Posted 6 months ago #

    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.

  3. ritso
    Posted 6 months ago #

    <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?

  4. Ruben Sargsyan
    Plugin Author

    Posted 6 months ago #


    Please contact me via http://rubensargsyan.com/contact/ form and I'll try to help you.



You must log in to post.

About this Plugin

About this Topic