How to Add a New Link In the Header Menu

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 https://www.phpmelody.com/. Here’s how to do it.

  1. Open your /templates/[current theme folder]/header.tpl file with a plain-text editor.
  2. Search for the following code:
    {if $smarty.const._MOD_ARTICLE == 1}
  3. Add your new link right after the closing {/if} like so:
    <li><a href="https://www.phpmelody.com/" class="wide-nav-link">Special Link</a></li>

Here’s how the code should look:

 

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.

 

Comments

4 responses to “How to Add a New Link In the Header Menu”

  1. Binance推荐代码 Avatar

    Your point of view caught my eye and was very interesting. Thanks. I have a question for you.

  2. binance Avatar

    Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me? https://www.binance.info/bn/register?ref=UM6SMJM3

  3. binance prijava Avatar

    Your article helped me a lot, is there any more related content? Thanks! https://www.binance.info/ur/register?ref=WTOZ531Y

  4. binance Registrierung Avatar

    Your point of view caught my eye and was very interesting. Thanks. I have a question for you.

Leave a Reply to binance prijava Cancel reply

Your email address will not be published. Required fields are marked *