test
Viewing 4 posts - 16 through 19 (of 19 total)
  • Author
    Posts
  • jamjodesign Friend
    #538397

    Thanks for the efforts here, this fix is certainly an improvement but not really ideal still. When I applied this fix it did indeed push the menu down but only when you closed off the Promo Bar and then opened it via the arrow. If you refresh the site and just load up the page it will still cover the menu like in this attachment:

    Then if you close this promo bar and open it again it does indeed push the menu down however as you can see the main page title and content is pushed up into the menu bar so again its not really ideal.

    So in this screenshot above you can see the page title NEWS is right up into the menu bar. Also as I mentioned in the top half of this even with this fix if you open your site the promo bar is still covering the main menu up. Maybe some other element needs changing to fix these 2 issues? Thanks


    1. promo2
    2. promo1
    Ninja Lead Moderator
    #538438

    You can try again with this tweak.

    Open the modules/mod_japromobar/tmpl/default.php file

    Change


    function jaPromoBarT3Nav(type){
    if(!type){
    type = getCookie('ja_promo_bar_<?php echo $module->id?>');
    }
    var ja_promo_bar_height = $('#ja-promo-bar-<?php echo $module->id?>').outerHeight();

    if($('.navbar-collapse-fixed-top').length){
    if(type=='opened' || type==''){
    $('.navbar-collapse-fixed-top').animate({'top': ja_promo_bar_height+'px'}, '<?php echo $speed; ?>', '<?php echo $easingOpen; ?>');
    }else{
    $('.navbar-collapse-fixed-top').animate({'top': 0}, '<?php echo $speed; ?>', '<?php echo $easingOpen; ?>');
    }
    }
    }

    To


    function jaPromoBarT3Nav(type){
    if(!type){
    type = getCookie('ja_promo_bar_<?php echo $module->id?>');
    }
    var ja_promo_bar_height = $('#ja-promo-bar-<?php echo $module->id?>').outerHeight();

    if($('#t3-mainnav').length){
    if(type=='opened' || type==''){
    $('#t3-mainnav').animate({'top': ja_promo_bar_height+'px'}, '<?php echo $speed; ?>', '<?php echo $easingOpen; ?>');
    }else{
    $('#t3-mainnav').animate({'top': 0}, '<?php echo $speed; ?>', '<?php echo $easingOpen; ?>');
    }
    }
    }

    If it still does not help, please pm me URL, admin and FTP credentials, I will help you to fix it directly on your site.

    whitewizard Friend
    #539389

    <em>@Ninja Lead 431589 wrote:</em><blockquote>You can try again with this tweak.

    Open the modules/mod_japromobar/tmpl/default.php file

    Change


    function jaPromoBarT3Nav(type){
    if(!type){
    type = getCookie('ja_promo_bar_<?php echo $module->id?>');
    }
    var ja_promo_bar_height = $('#ja-promo-bar-<?php echo $module->id?>').outerHeight();

    if($('.navbar-collapse-fixed-top').length){
    if(type=='opened' || type==''){
    $('.navbar-collapse-fixed-top').animate({'top': ja_promo_bar_height+'px'}, '<?php echo $speed; ?>', '<?php echo $easingOpen; ?>');
    }else{
    $('.navbar-collapse-fixed-top').animate({'top': 0}, '<?php echo $speed; ?>', '<?php echo $easingOpen; ?>');
    }
    }
    }

    To


    function jaPromoBarT3Nav(type){
    if(!type){
    type = getCookie('ja_promo_bar_<?php echo $module->id?>');
    }
    var ja_promo_bar_height = $('#ja-promo-bar-<?php echo $module->id?>').outerHeight();

    if($('#t3-mainnav').length){
    if(type=='opened' || type==''){
    $('#t3-mainnav').animate({'top': ja_promo_bar_height+'px'}, '<?php echo $speed; ?>', '<?php echo $easingOpen; ?>');
    }else{
    $('#t3-mainnav').animate({'top': 0}, '<?php echo $speed; ?>', '<?php echo $easingOpen; ?>');
    }
    }
    }

    If it still does not help, please pm me URL, admin and FTP credentials, I will help you to fix it directly on your site.</blockquote>

    Lots of thanks this solve the problem

    srv28 Friend
    #552602

    <em>@Ninja Lead 431589 wrote:</em><blockquote>You can try again with this tweak.

    Open the modules/mod_japromobar/tmpl/default.php file

    Change


    function jaPromoBarT3Nav(type){
    if(!type){
    type = getCookie('ja_promo_bar_<?php echo $module->id?>');
    }
    var ja_promo_bar_height = $('#ja-promo-bar-<?php echo $module->id?>').outerHeight();

    if($('.navbar-collapse-fixed-top').length){
    if(type=='opened' || type==''){
    $('.navbar-collapse-fixed-top').animate({'top': ja_promo_bar_height+'px'}, '<?php echo $speed; ?>', '<?php echo $easingOpen; ?>');
    }else{
    $('.navbar-collapse-fixed-top').animate({'top': 0}, '<?php echo $speed; ?>', '<?php echo $easingOpen; ?>');
    }
    }
    }

    To


    function jaPromoBarT3Nav(type){
    if(!type){
    type = getCookie('ja_promo_bar_<?php echo $module->id?>');
    }
    var ja_promo_bar_height = $('#ja-promo-bar-<?php echo $module->id?>').outerHeight();

    if($('#t3-mainnav').length){
    if(type=='opened' || type==''){
    $('#t3-mainnav').animate({'top': ja_promo_bar_height+'px'}, '<?php echo $speed; ?>', '<?php echo $easingOpen; ?>');
    }else{
    $('#t3-mainnav').animate({'top': 0}, '<?php echo $speed; ?>', '<?php echo $easingOpen; ?>');
    }
    }
    }

    If it still does not help, please pm me URL, admin and FTP credentials, I will help you to fix it directly on your site.</blockquote>

    It works for me, thank you so much!

Viewing 4 posts - 16 through 19 (of 19 total)

This topic contains 18 replies, has 4 voices, and was last updated by  jamjodesign 10 years, 1 month ago.

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