MyBB Community Forums

Full Version: Menu bar
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How do you add links to my menu/navigation bar? I tried using a mod but it doesn't work. Can someone tell me how to do that via editing the templates?

I want to add a help page and a donate page to the nav bar.
ACP >> Templates & Style >> Templates >> Apart Flame (I assume) >> Header Templates >> header

Find:
<ul class="menu top_links">
<li><a href="{$mybb->settings['bburl']}/search.php" class="search">{$lang->toplinks_search}</a></li>
<li><a href="{$mybb->settings['bburl']}/memberlist.php" class="memberlist">{$lang->toplinks_memberlist}</a></li>
<li><a href="{$mybb->settings['bburl']}/calendar.php" class="calendar">{$lang->toplinks_calendar}</a></li>
<li><a href="{$mybb->settings['bburl']}/misc.php?action=help" class="help">{$lang->toplinks_help}</a></li>
</ul>

Add the following code just before </ul> tag:
<li><a href="LINK_URL" class="LINK_CLASS">LINK_NAME</a></li>

Replace LINK_CLASS with the accompanying page name.

Create the class in global.css using "#panel .upper ul.top_links a.LINK_CLASS" with the rules in there. Smile
How do you add a tiny image next to it?
Replace this;
<li><a href="LINK_URL" class="LINK_CLASS">LINK_NAME</a></li>
with;
<li><a href="LINK_URL" class="LINK_CLASS"><img src="YOUR_IMAGE_PATH">LINK_NAME</a></li>

This'll add a image in front of the menu item Wink
Thanks. Big Grin
No problem, glad to help always =)