-
AuthorPosts
-
November 8, 2014 at 6:30 pm #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 ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
November 10, 2014 at 4:52 am #554690Hi
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; ?>');
}
}
}1 user says Thank You to Saguaros for this useful post
November 10, 2014 at 10:50 pm #554781Works 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> -
AuthorPosts
This topic contains 3 replies, has 2 voices, and was last updated by shedsolutions 10 years ago.
We moved to new unified forum. Please post all new support queries in our New Forum