The following warnings occurred:
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/printthread.php 203 postParser->parse_message
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/printthread.php 203 postParser->parse_message
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/printthread.php 203 postParser->parse_message
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/printthread.php 203 postParser->parse_message



GetSimple Support Forum
Add an arbitrary link to the menu - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16)
+--- Thread: Add an arbitrary link to the menu (/showthread.php?tid=5270)



Add an arbitrary link to the menu - jamiew - 2013-10-12

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.


RE: Add an arbitrary link to the menu - Timbow - 2013-10-12

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


RE: Add an arbitrary link to the menu - jamiew - 2013-10-12

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.


RE: Add an arbitrary link to the menu - shawn_a - 2013-10-12

linkmanager plugin perhaps ? This request comes up all the time, there are several threads on it.