Support » Plugins » [Plugin: ILC Folding] Default Navigation Mod

  • Hi there,
    would it be possible to add this code to your plugin?

    var s = false;
    //Prüfen ob Untermenue sichtbar
    jQuery("#nav .menu ul li ul" ).each(function(index, obj){
            s = true;
    //Falls kein Untermenu sichtbar
        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:

Viewing 1 replies (of 1 total)
  • Very interesting, I can see you have removed the href attribute of the ancestor elements. However, you should keep the text enclosed by and 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.


Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: ILC Folding] Default Navigation Mod’ is closed to new replies.