QUESTION How to add subtitles to menu? - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16) +--- Thread: QUESTION How to add subtitles to menu? (/showthread.php?tid=6561) |
How to add subtitles to menu? - lukinhasb - 2014-07-12 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: How it is now: 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; ?>"> template.php PHP Code: <ul id="nav"> The problem is, how can I assign the $item->subtitle to each menu? Also, is there another/easier way to do this? Thanks! RE: How to add subtitles to menu? - lukinhasb - 2014-07-12 Did it. Added custom fields using i18N Custom Fields plugin, here's what I've done, in case someone looks for this in the future: 1 - Everything I mentioned in the first post 2 - Added i18N Custom Fields Plugin 3 - Created a custom field named subtitle 4 - Filled it with the text I wanted in the page That's it. RE: How to add subtitles to menu? - shawn_a - 2014-07-12 Thats what I use, custom fields. 3.4 will have an alternate title and summary field for using for these kinds of design patterns, subtitles, taglines etc., i use them alot. RE: How to add subtitles to menu? - cmb - 2014-07-12 (2014-07-12, 00:15:58)lukinhasb Wrote: template.php Most likely you want to use: PHP Code: <ul id="nav"> RE: How to add subtitles to menu? - xuser - 2015-08-06 It doesn't work for me. Can you tell us please what code exactly in each file we have to add or change to get working menu subtitles. Thanks. RE: How to add subtitles to menu? - Angryboy - 2015-08-11 Just to unpack what was said above:
PHP Code: <li class="<?php echo $item->classes; ?>">
PHP Code: // Get the current page id |