- Posts: 66
- Thank you received: 0
Menu not expanding when root chosen
-
dreamdest
Inactive member -
Topic Author
- Member
-
Less
More
10 years 5 months ago #42861
by dreamdest
Menu not expanding when root chosen was created by dreamdest
On
www.dreamdestinations.travel
, on the home page, if you mouse over "about us", the menu expands, but if you click on "about us" and go to the page, that menu no longer expands. thanks.
Please Log in to join the conversation.
-
ivan.milic
Support Staff -
- Moderator
-
Less
More
- Posts: 14116
- Thank you received: 1639
10 years 5 months ago #42868
by ivan.milic
Replied by ivan.milic on topic Menu not expanding when root chosen
In index.php of template:
function mainmenu(){
jQuery("#nav ul").css({display: "none"});
jQuery("#nav li").hover(function(){
jQuery(this).find('ul:first').css({visibility: "visible",display: "none"}).show( '<?php echo $menuAnimationEffect; ?>', {direction:"<?php echo $menudirection; ?>"}, 300 );
},function(){
jQuery(this).find('ul:first').hide( '<?php echo $menuAnimationEffect; ?>', {direction:"<?php echo $menudirection; ?>"}, 200 );
}
);}
chnage to:
function mainmenu(){
jQuery("#nav ul").css({'display': "none"});
jQuery("#nav li").hover(function(){
jQuery(this).find('ul:first').css({'visibility': "visible",'display': "none"}).show( '<?php echo $menuAnimationEffect; ?>', {'direction':"<?php echo $menudirection; ?>"}, 300 );
},function(){
jQuery(this).find('ul:first').hide( '<?php echo $menuAnimationEffect; ?>', {'direction':"<?php echo $menudirection; ?>"}, 200 );
}
);}
function mainmenu(){
jQuery("#nav ul").css({display: "none"});
jQuery("#nav li").hover(function(){
jQuery(this).find('ul:first').css({visibility: "visible",display: "none"}).show( '<?php echo $menuAnimationEffect; ?>', {direction:"<?php echo $menudirection; ?>"}, 300 );
},function(){
jQuery(this).find('ul:first').hide( '<?php echo $menuAnimationEffect; ?>', {direction:"<?php echo $menudirection; ?>"}, 200 );
}
);}
chnage to:
function mainmenu(){
jQuery("#nav ul").css({'display': "none"});
jQuery("#nav li").hover(function(){
jQuery(this).find('ul:first').css({'visibility': "visible",'display': "none"}).show( '<?php echo $menuAnimationEffect; ?>', {'direction':"<?php echo $menudirection; ?>"}, 300 );
},function(){
jQuery(this).find('ul:first').hide( '<?php echo $menuAnimationEffect; ?>', {'direction':"<?php echo $menudirection; ?>"}, 200 );
}
);}
Please Log in to join the conversation.
-
dreamdest
Inactive member -
Topic Author
- Member
-
Less
More
- Posts: 66
- Thank you received: 0
10 years 5 months ago #42872
by dreamdest
Replied by dreamdest on topic Menu not expanding when root chosen
Please Log in to join the conversation.
-
ivan.milic
Support Staff -
- Moderator
-
Less
More
- Posts: 14116
- Thank you received: 1639
10 years 5 months ago #42877
by ivan.milic
Replied by ivan.milic on topic Menu not expanding when root chosen
Try to put:
.show()
instead of:
.show( '<?php echo $menuAnimationEffect; ?>', {direction:"<?php echo $menudirection; ?>"}, 300 );
.show()
instead of:
.show( '<?php echo $menuAnimationEffect; ?>', {direction:"<?php echo $menudirection; ?>"}, 300 );
The following user(s) said Thank You: dreamdest
Please Log in to join the conversation.
Time to create page: 0.159 seconds