WPIntell

Source evidence

Disabling Auto-close function

Easy Sidebar Menu Widget · support · 2017-06-06T06:18:00+00:00

complaintsentiment
mediumseverity
0.92relevance
2replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

6 / 22 rows with source links

27.3% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

16 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
omegacube unresolved
@phpbits Hi there, I know my issue might be similar to the ones that other people have posted earlier but wanted to elaborate my request. I have installed this plugin on my left-side menu. Now, I have three levels of menu Parent Menu 1 Sub-menu 1 Sub-menu 2 Initially, only the ‘Parent’ will be seen and when i click on it, it expands to display the Menu 1. Clicking Menu 1 displays its children. Now, when I click Sub-menu 1, it refreshes to display the page but the entire section collapses to reveal only the ‘Parent’ again. I would like it to stay expanded and not collapse entirely. It is not the right user experience. If he is on Sub-menu 1, he might want to go into Sub-menu 2 and so on. Why the need to collapse the entire section? Let him have the freedom to close it. Please let me know how to change the code for this or introduce an updated version with the auto-close disabled. (Note: I am new to coding and learning the tricks. I tried to figure out what code does this but couldn’t get it.) Appreciate your quick assistance. Thanks! +1 Hi guys, adding this in my header.php just below the wp_head() function works for me where I have a menu as follows: Parent -Child –Grandchild <script> (function($) { $( document ).ready(function() { $( "li.current_page_item" ).each(function( index ) { $(this).parent('.sub-menu').slideToggle('fast'); }); $( "li.current-menu-parent" ).each(function( index ) { $(this).parent('.sub-menu').slideToggle('fast'); }); $( "li.current-menu-item" ).each(function( index ) { $(this).parent('.sub-menu').slideToggle('fast'); }); }); })(jQuery); </script>

Comments

2 shown
fallendea 2017-09-13T08:10:00+00:00

+1

rabidsquid 2017-09-13T09:40:00+00:00

Hi guys, adding this in my header.php just below the wp_head() function works for me where I have a menu as follows: Parent -Child –Grandchild <script> (function($) { $( document ).ready(function() { $( "li.current_page_item" ).each(function( index ) { $(this).parent('.sub-menu').slideToggle('fast'); }); $( "li.current-menu-parent" ).each(function( index ) { $(this).parent('.sub-menu').slideToggle('fast'); }); $( "li.current-menu-item" ).each(function( index ) { $(this).parent('.sub-menu').slideToggle('fast'); }); }); })(jQuery); </script>