Including a new link into your PHP Melody header menu (see image) is very easy.
All you have to do is open the template file responsible for the header and include the HTML for your new link.
In the following example we’re going to include a new link, named ‘Special Link‘ which points to http://www.phpmelody.com/. Here’s how to do it.
- Open your /templates/[current theme folder]/header.tpl file with a plain-text editor.
- Search for the following HTML code:
<li><a href="{$smarty.const._URL}/contact_us.{$smarty.const._FEXT}" class="wide-nav-link">{$lang.contact_us}</a></li>
- Add your new link right after the line above, like so:
<li><a href="http://www.phpmelody.com/" class="wide-nav-link">Special Link</a></li>
That’s it. Upload the updated header.tpl file back to your PHP Melody installation and the new link will appear in the header menu.