Title: [Plugin: ILC Folding] Default Navigation Mod
Last modified: August 19, 2016

---

# [Plugin: ILC Folding] Default Navigation Mod

 *  [Scorpion](https://wordpress.org/support/users/djscorpion/)
 * (@djscorpion)
 * [16 years ago](https://wordpress.org/support/topic/plugin-ilc-folding-default-navigation-mod/)
 * Hi there,
    would it be possible to add this code to your plugin?
 *     ```
       //Variable
       var s = false;
       //Prüfen ob Untermenue sichtbar
       jQuery("#nav .menu ul li ul" ).each(function(index, obj){
           if(jQuery(obj).is(':visible')){
               s = true;
           }
       });
   
       //Falls kein Untermenu sichtbar
       if(s==false){
           jQuery("#nav .menu ul li.current_page_parent").parent().show();
       }
       ```
   
 * I added it behind the following line:
    jQuery(“#nav .menu > ul > li.page_item”).
   click(function()
 * The click or hover option could be an option inside of the settings.
 * Best Regards,
    Norman Schlorke
 * PS: See the working example: [http://www.vdvc.de](http://www.vdvc.de)
 * [http://wordpress.org/extend/plugins/ilc-folding/](http://wordpress.org/extend/plugins/ilc-folding/)

Viewing 1 replies (of 1 total)

 *  [Elio Rivero](https://wordpress.org/support/users/ilovecolors/)
 * (@ilovecolors)
 * [16 years ago](https://wordpress.org/support/topic/plugin-ilc-folding-default-navigation-mod/#post-1502356)
 *  and move the text away of the browser area with text-indent: -99999px; so you
   can still have text on those links that is seen by search engines. I guess
    jQuery(“#
   nav .menu > ul > li.page_item > a”).css(‘text-indent’, ‘-99999px’); would be 
   enough or you can set it on your stylesheet. I will try to add this later but
   it would involve creating an options page so the user can select the desired 
   behaviour for the navigation links. Best,
 * Elio

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: ILC Folding] Default Navigation Mod’ is closed to new replies.

## Tags

 * [modification](https://wordpress.org/support/topic-tag/modification/)

 * 1 reply
 * 2 participants
 * Last reply from: [Elio Rivero](https://wordpress.org/support/users/ilovecolors/)
 * Last activity: [16 years ago](https://wordpress.org/support/topic/plugin-ilc-folding-default-navigation-mod/#post-1502356)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
