MyBB Community Forums

Full Version: adding links to header?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
what do i have to edit to put links in the header? plz be very detailed

(im using the page manager)
Admin Control Panel>Templates and Styles>Templates>"Current theme">Header>Expand

Whole bunch of choices on where to put it choose where you want it.
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