MyBB Community Forums

Full Version: Adding Home & Rules link in top menu
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Guys in which template should I add Home & Rules link in top menu so that it is always visibile to Guest & Registered users always in Header Templates:
1 header
2 header_welcomeblock_guest
3 header_welcomeblock_member
4 header_welcomeblock_member_admin
5 header_welcomeblock_member_moderator
Its in header template.

ACP >> Templates & Style >> Templates >> Your theme's templates >> 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