Posts: 13
Threads: 4
Joined: Jan 2012
In my template I use the i18N plugin for a sub menu.
It works perfectly in both languages.
But I have two little questions.
1. How can I enlarge the intervals between menu items (vertical menu)?
2. Is it possible to highlight a selected sub menu item is some way (by bold font or color)?
And I must say again: this plugin is just great!
Posts: 2,094
Threads: 54
Joined: Jan 2011
cuirassier Wrote:In my template I use the i18N plugin for a sub menu.
It works perfectly in both languages.
But I have two little questions.
1. How can I enlarge the intervals between menu items (vertical menu)?
2. Is it possible to highlight a selected sub menu item is some way (by bold font or color)?
And I must say again: this plugin is just great!
With CSS rules added to your style sheet. Your enclosing
ul should have an id, e.g.
menu:
Code:
<ul id="menu"><?php get_i18n_navigation(...); ?></ul>
Then you can style it like that:
Code:
#menu li { margin-bottom:20px; }
#menu li.current { font-weight: bold; }
#menu li.currentpath { font-weight: bold; } /* multi level menu, parents of current item */
Posts: 13
Threads: 4
Joined: Jan 2012
Thank you very very much!
It works excellently!
Posts: 1
Threads: 0
Joined: Sep 2014
Hello everyone,
I would like to display class="current" within a template page and I have created a component. I cannot echo "current".
<li class="<?php echo htmlspecialchars($item->classes); ?>
<?php if ($item->isCurrent) { ?>
<?php echo "current"; ?>
<?php } ?>">
<a href="<?php echo htmlspecialchars($item->link); ?>">
<?php echo htmlspecialchars($item->text); ?>
</a>
</li>
What's wrong in this code ?
Kind regards,
Stéphane