Jeffrey's Log

Archives | Subscribe


Adding links to the header in WP K2 theme

Published on: March 28, 2009

Share on      


While using wordpress for blogging, you may have to add externel links. For example if you need a link to your flickr page, you cannot add it from the wordpress menu. I think adding external links in K2 theme of wordpress is a little bit different.

In some of the forums they will ask you to edit header.php in themes/k2/ . Or some may ask you to add an plugin. But I don’t love adding plugins too much. And I think adding external links in K2 theme of wordpress is not very hard.

STEPS

  1. Just edit the file themes/k2/app/includes/display.php
  2. Find <ul class=”menu”>
  3. Just below that add the line <li><ahref=”http://www.example.com”>EXAMPLE</a></li>
  4. Save it and referesh your page. _

_

Do you see the new link as the first ? Just try to add the same line in other places and have your links placed as you wish….

_HAPPY BLOGGING :)

_


Comments

Comments can be emailed or tweeted to me. I would like to hear them and will try to reply.


Made using Jekyll, Twitter Bootstrap, Code Prettify and Font Awesome.

Copyright (C) 2008 - 2021 Jeffrey.