-
AuthorPosts
-
jamjodesign Friend
jamjodesign
- Join date:
- June 2008
- Posts:
- 432
- Downloads:
- 27
- Uploads:
- 40
- Thanks:
- 59
- Thanked:
- 14 times in 3 posts
June 9, 2014 at 10:57 pm #538397Thanks 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
-
Ninja Lead Moderator
Ninja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
June 10, 2014 at 8:19 am #538438You 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.
June 18, 2014 at 4:48 pm #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
October 11, 2014 at 7:26 pm #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!
-
AuthorPosts
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
Jump to forum