Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • shedsolutions Friend
    #202547

    Hi there,

    We are currently developing our new site using the Uber theme.

    We have installed the “JA PromoBar” Module and have enabled the module.

    Unfortunately we can not get the MegaMenu to “Push Down”. The Promo Bar simply covers the main menu. Is there a way to get the menu to push down?

    Saguaros Moderator
    #554690

    Hi

    You can try with this tweak:

    – Open the file: modulesmod_japromobartmpldefault.php
    – Replace this:

    $('#ja-promo-bar-<?php echo $module->id?> .icon-toogle').click(function() {
    if(getCookie('ja_promo_bar_<?php echo $module->id?>')=='opened') {
    jaClosePromoBar();
    } else {
    jaOpenPromoBar();
    }
    });

    With:


    $('#ja-promo-bar-<?php echo $module->id?> .icon-toogle').click(function() {
    if(getCookie('ja_promo_bar_<?php echo $module->id?>')=='opened') {
    jQuery('#t3-header').animate({'top': 0}, 'slow');
    jaClosePromoBar();
    } else {
    jQuery('#t3-header').animate({'top': 43}, 'slow');
    jaOpenPromoBar();
    }
    });

    – Replace this:


    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; ?>');
    }
    }
    }

    With


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

    shedsolutions Friend
    #554781

    Works like a charm! Thank you for your help!

    <em>@Saguaros 452396 wrote:</em><blockquote>Hi

    You can try with this tweak:

    – Open the file: modulesmod_japromobartmpldefault.php
    – Replace this:

    $('#ja-promo-bar-<?php echo $module->id?> .icon-toogle').click(function() {
    if(getCookie('ja_promo_bar_<?php echo $module->id?>')=='opened') {
    jaClosePromoBar();
    } else {
    jaOpenPromoBar();
    }
    });

    With:


    $('#ja-promo-bar-<?php echo $module->id?> .icon-toogle').click(function() {
    if(getCookie('ja_promo_bar_<?php echo $module->id?>')=='opened') {
    jQuery('#t3-header').animate({'top': 0}, 'slow');
    jaClosePromoBar();
    } else {
    jQuery('#t3-header').animate({'top': 43}, 'slow');
    jaOpenPromoBar();
    }
    });

    – Replace this:


    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; ?>');
    }
    }
    }

    With


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


    </blockquote>

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

This topic contains 3 replies, has 2 voices, and was last updated by  shedsolutions 9 years, 5 months ago.

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