Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Add an arbitrary link to the menu
#1
I pawed through the wiki and the forum briefly, but I can't seem to find what I'm looking for.

I would like to add an item to the main navigation menu with a target URL that I specify. So, rather than the item in the menu pointing to a page, I'd prefer to specify the resource (whether local to my server, or external).

What would be the best way to accomplish this?

Thanks in advance for any assistance.
Reply
#2
The easy way is to add your menu item(s) at the beginning or end of the nav menu by putting them in your template as extra <li> . So you template would contain
Code:
<nav>
   <ul>
      <?php get_navigation(return_page_slug()); ?>
      <li class="special"><a href="http://www.yourlink" title="Hover Text">Menu Text</a></li>
   </ul>
</nav>

Otherwise you use a plugin
Reply
#3
Timbow,
Thanks. I guess I'll have to figure out a way to do this via plugin as the link I want to add needs to be in the middle of the menu.
Reply
#4
linkmanager plugin perhaps ? This request comes up all the time, there are several threads on it.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply




Users browsing this thread: 1 Guest(s)