GetSimple Support Forum
I18N Navigation child active styling - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: Plugins (http://get-simple.info/forums/forumdisplay.php?fid=13)
+--- Thread: I18N Navigation child active styling (/showthread.php?tid=3004)



I18N Navigation child active styling - Laurynas - 2012-03-28

Now plugin styling only parent links with tag current. How to style active child link?


I18N Navigation child active styling - mvlcek - 2012-03-28

Laurynas Wrote:Now plugin styling only parent links with tag current. How to style active child link?

The current page gets the CSS class current, the parent(s) the CSS class currentpath.


I18N Navigation child active styling - Laurynas - 2012-03-29

It's working only for top menu parent tags. Child li tags don't getting style current/current path, look source code on http://puolau.bot.nu/vm/

What's the problem?

P.S. Here is my nav structure:
[Image: navstructb.jpg]

Topmenu getting with:
Code:
<ul><?php get_i18n_navigation(return_page_slug(),0,0); ?></ul>

Leftmenu:

Code:
<?php get_i18n_navigation('left-menu',1,99,I18N_SHOW_MENU); ?>



I18N Navigation child active styling - mvlcek - 2012-03-29

Laurynas Wrote:It's working only for top menu parent tags. Child li tags don't getting style current/current path, look source code on http://puolau.bot.nu/vm/
Leftmenu:

Code:
<?php get_i18n_navigation('left-menu',1,99,I18N_SHOW_MENU); ?>

You must use return_page_slug() as first parameter, if the current page is a sub page of left_menu. See here for the code.


I18N Navigation child active styling - Laurynas - 2012-03-29

-