Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Submenu Items (I18N). Two questions
#1
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!
Reply
#2
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 */
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply
#3
Thank you very very much!
It works excellently!
Reply
#4
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
Reply




Users browsing this thread: 1 Guest(s)