GetSimple Support Forum

Full Version: Submenu Items (I18N). Two questions
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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!
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 */
Thank you very very much!
It works excellently!
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