- Posts: 21
- Thank you received: 0
Menu dropdown stay always open
-
hardimos
Inactive member - Topic Author
- Member
Less
More
10 years 2 months ago #42245
by hardimos
Menu dropdown stay always open was created by hardimos
With sparky 1.3, menu dropdown in some menus (not all of them) stays opened.
What is wrong?
What is wrong?
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
10 years 2 months ago #42254
by ivan.milic
Replied by ivan.milic on topic Menu dropdown stay always open
Please Log in to join the conversation.
-
hardimos
Inactive member - Topic Author
- Member
Less
More
- Posts: 21
- Thank you received: 0
10 years 2 months ago #42273
by hardimos
Replied by hardimos on topic Menu dropdown stay always open-expanded
there is not jquery.hjt.navv.js file in my template.
There is "jquery.hjt.nav.js" with the following similar code
jQuery('.nav ul').hide();
jQuery('.nav li ul li').filter(':last-child').css('border-bottom', 'none');
jQuery('.nav li').hover(function(){
jQuery(this).find('ul:first').stop(true,true)[options.effect](options.speed);
},function(){
jQuery(this).css('position', 'relative')
.find('ul:first').stop(true,true)[options.effect](options.speed);
});
There is "jquery.hjt.nav.js" with the following similar code
jQuery('.nav ul').hide();
jQuery('.nav li ul li').filter(':last-child').css('border-bottom', 'none');
jQuery('.nav li').hover(function(){
jQuery(this).find('ul:first').stop(true,true)[options.effect](options.speed);
},function(){
jQuery(this).css('position', 'relative')
.find('ul:first').stop(true,true)[options.effect](options.speed);
});
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
10 years 2 months ago #42277
by ivan.milic
Replied by ivan.milic on topic Menu dropdown stay always open-expanded
That is code change it like this:
Code:
jQuery('.nav ul').hide();
jQuery('.nav li ul li').filter(':last-child').css('border-bottom', 'none');
jQuery('.nav li').hover(function(){
jQuery(this).find('ul:first:not(:visible)').stop(true,true)[options.effect](options.speed);
},function(){
jQuery(this).css('position', 'relative')
.find('ul:first:visible').stop(true,true)[options.effect](options.speed);
});
Please Log in to join the conversation.
-
hardimos
Inactive member - Topic Author
- Member
Less
More
- Posts: 21
- Thank you received: 0
10 years 2 months ago #42291
by hardimos
Replied by hardimos on topic Menu dropdown stay always open
Sorry. Did not work.
Check this:
www.kalentzi.gr/index.php/homepage/press-release
this is the last menu option from the first menu link
Check this:
www.kalentzi.gr/index.php/homepage/press-release
this is the last menu option from the first menu link
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
10 years 2 months ago #42293
by ivan.milic
Replied by ivan.milic on topic Menu dropdown stay always open
You probably edited index.php and left something by mistake, see part of your page source:
the firs line : <script>
should be removed
Code:
<script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.23/jquery-ui.min.js"></script>
the firs line : <script>
should be removed
Please Log in to join the conversation.
Time to create page: 0.100 seconds