Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • islandview Friend
    #968772

    Hi. I’m using version 1.0.4 which I believe is the latest, and I have the JA Simpli template.

    If I use the Promo Bar module set to display at ‘BOTTOM’ then that works, but at the top of my page I get a blank white area, the same height as if the Promo Bar was in ‘TOP’ position.

    You can see it here: http://www.caymanactive.com

    Mo0nlight Moderator
    #969669

    Hi

    You could try this. edit the file : modules/mod_japromobar/tmpl/default.php

    Change the code

    <?php if($params->get('push_page_down', 1) == 1){ ?>
                 if(type=='opened' || type==''){
                    $('body').animate({'padding-top': (ja_promo_bar_height + ja_t3_main_nav) + 'px'}, '<?php echo $speed; ?>', '<?php echo $easingOpen; ?>');
                }else{
                    $('body').animate({'padding-top': ja_t3_main_nav+'px'}, '<?php echo $speed; ?>', '<?php echo $easingOpen; ?>');
                }
                <?php }else{ ?>
                if(type=='opened' || type==''){
                    $('body').animate({'top': (ja_promo_bar_height + ja_t3_main_nav) + 'px'}, '<?php echo $speed; ?>', '<?php echo $easingOpen; ?>');
                }else{
                    $('body').animate({'top': ja_t3_main_nav+'px'}, '<?php echo $speed; ?>', '<?php echo $easingOpen; ?>');
                }
                <?php } ?>

    To

    <?php if($params->get('push_page_down', 1) == 1){ ?>
                 if(type=='opened' || type==''){
                    $('body').animate({'padding-<?php echo $params->get('position', 'top'); ?>': (ja_promo_bar_height + ja_t3_main_nav) + 'px'}, '<?php echo $speed; ?>', '<?php echo $easingOpen; ?>');
                }else{
                    $('body').animate({'padding-<?php echo $params->get('position', 'top'); ?>': ja_t3_main_nav+'px'}, '<?php echo $speed; ?>', '<?php echo $easingOpen; ?>');
                }
                <?php }else{ ?>
                if(type=='opened' || type==''){
                    $('body').animate({'<?php echo $params->get('position', 'top'); ?>': (ja_promo_bar_height + ja_t3_main_nav) + 'px'}, '<?php echo $speed; ?>', '<?php echo $easingOpen; ?>');
                }else{
                    $('body').animate({'<?php echo $params->get('position', 'top'); ?>': ja_t3_main_nav+'px'}, '<?php echo $speed; ?>', '<?php echo $easingOpen; ?>');
                }
                <?php } ?>

    Regards

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

This topic contains 1 reply, has 2 voices, and was last updated by  Mo0nlight 8 years, 1 month ago.

We moved to new unified forum. Please post all new support queries in our New Forum