Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I18N Navigation child active styling
#1
Now plugin styling only parent links with tag current. How to style active child link?
Reply
#2
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, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply
#3
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); ?>
Reply
#4
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, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply
#5
-
Reply




Users browsing this thread: 1 Guest(s)