MyBB Community Forums

Full Version: How to add a new link?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How to add a new link in the main menu?
(2010-08-04, 07:53 PM)sss2019 Wrote: [ -> ]How to add a new link in the main menu?

For what version of MyBB? For MyBB 1.6 you can do that at the header template. Find this code

<li><a href="{$mybb->settings['bburl']}/search.php"><img src="{$theme['imgdir']}/toplinks/search.gif" alt="" title="" />{$lang->toplinks_search}</a></li>

And add before or after

<li><a href="urltoyourlink"><img src="{$theme['imgdir']}/toplinks/imagename.gif" alt="" title="" />your link name</a></li>

And then replace the values to your own. i.e. urltoyourlink witht he full url to where you want the custom link to point to. imagename.gif with the image you want to use at the menu with the custom link and upload it at the toplinksfolder in the /images/ directory. And your link name with the actual name that you want your link to have.
thanx
And where is header tempalte? Confused
(2010-08-04, 08:05 PM)sss2019 Wrote: [ -> ]thanx
And where is header tempalte? Confused

You are welcome. You can find it at your Admin Panel->Templates->Templates & Style->Default Templates->Header Templates->Header.