Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QUESTION How to add subtitles to menu?
#1
I'm converting my website to Get-Simple, and I'm stuck at adding subtitles to the menu. Please take a look at the images below:

What I want:
[Image: reXr6O0.png]

How it is now:
[Image: zpEYvDh.png]

I've researched a lot so far, and here's what I tried:

I have downloaded i18N and i18N navitagion plugins, I've added a custom component called menu_custom

menu_custom (component)
PHP Code:
<li class="<?php echo $item->classes; ?>">
  <
a href="<?php echo htmlspecialchars($item->link); ?>">
    <?
php echo htmlspecialchars($item->text); ?>
    <span class="subtitle"><?php echo htmlspecialchars($item->subtitle); ?></span>
  </a>
  <?php if ($item->isOpen) { ?>
    <ul><?php $item->outputChildren(); ?></ul>
  <?php ?>
</li> 

template.php
PHP Code:
<ul id="nav">
    <?
php get_i18n_navigation($slug$minlevel=0$maxlevel=0$show=I18N_SHOW_NORMAL$component=menu_custom?>
</ul> 

The problem is, how can I assign the $item->subtitle to each menu? Also, is there another/easier way to do this?

Thanks!
Reply


Messages In This Thread
How to add subtitles to menu? - by lukinhasb - 2014-07-12, 00:15:58
RE: How to add subtitles to menu? - by lukinhasb - 2014-07-12, 00:34:15
RE: How to add subtitles to menu? - by shawn_a - 2014-07-12, 00:54:34
RE: How to add subtitles to menu? - by cmb - 2014-07-12, 11:56:10
RE: How to add subtitles to menu? - by xuser - 2015-08-06, 20:23:02
RE: How to add subtitles to menu? - by Angryboy - 2015-08-11, 00:35:48



Users browsing this thread: 1 Guest(s)