News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Add description to sub-menus

Started by Mick., January 30, 2011, 08:56:16 PM

Previous topic - Next topic

Mick.

I added a quick description to my sub-menus in one of my sites.  I thought i'd share.

Easy to do in Subs.php


Not meant for main menu

SMF 2.0 Only

In Subs.php for example, lets do the profile sub-menus:

Find:
'title' => $txt['summary'],

Replace with:
'title' => $txt['summary'] . '<br>' . 'View your public profile',


and so on!


I may include this in the menu icons mod eventually.

Have fun! ;)

!RFAN

nice.. i will use it..

but can i make description's font size smaller??

Mick.

Something like this for example...

'title' => $txt['summary'] . '<br>' . '<font size="1">View your public profile</font>',


It may be deprecated but it works.  ;)


henrik1782

My favorite mods: Forum Firewall, httBL, MessagePreviewOnHover, BoardHover Mod, VB Style Board Index, Separate Replies and Views Column, Realtime clock by Joker, ENotify, Topic Solved.

Mick.


Sapinho®


AussieBill

Quote from: bluedevil on January 31, 2011, 09:10:17 PM
Something like this for example...

'title' => $txt['summary'] . '<br>' . '<font size="1">View your public profile</font>',


It may be deprecated but it works.  ;)

I tried <font style="font-size:0.8em;"> and it seems to be working.
'title' => $txt['summary'] . '<br />' . '<font style="font-size:0.8em;">View your public profile</font>',

hcfwesker

This is really awesome.  Tips n Tricks is my fave board on smf support, because of creatively made touch-ups such as these.

Can't wait to try it out. :)

Advertisement: