Customizing SMF > Graphics and Templates
Adding a link to my Website to the forums menu
michaeloeser:
Figured it out. Interesting ;)
This is what is located in the index.template file
--- Code: ---// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context, $settings, $options, $scripturl, $txt;
echo '<div class="nav_bar_item"><a class="nav_bar_item_link" href="http://www.der-prinz.com/">Home</a></div>';
foreach ($context['menu_buttons'] as $act => $button)
{
echo '
<div class="nav_bar_item', $button['active_button'] ? ' active ' : '', '" id="button_', $act, '">
<a class="nav_bar_item_link', $button['active_button'] ? ' active ' : '', '" href="', $button['href'], '"', isset($button['target']) ? ' target="' . $button['target'] . '"' : '', '>
', $button['title'], '
</a>
</div>
';
}
}
--- End code ---
I simply added this line and it works.
--- Code: ---echo '<div class="nav_bar_item"><a class="nav_bar_item_link" href="http://www.der-prinz.com/">Home</a></div>';
--- End code ---
Navigation
[0] Message Index
[*] Previous page
Go to full version