logo logo

WP Category Horizontal Menus

This is the Code and Style for a simple WP Category Horizontal Menu Replace 40 with whatever category ID number you want left out of the menu

<ul>
<li><a href="<?php echo get_settings('home'); ?>">Home</a></li>
<?php list_cats(FALSE, '', 'ID',
'asc', '', TRUE, FALSE,
FALSE, FALSE, TRUE,
FALSE, FALSE, '', FALSE,
'', '', '40',
TRUE); ?>
</ul>

Style

 #navmenu ul {margin: 0; padding: 0; list-style-type: none; list-style-image: none; } #navmenu li {display: inline; padding: 5px 20px 5px 20px} #navmenu a {text-decoration:none; color: blue; } #navmenu a:hover {color: purple; } 
bottom

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

By submitting a comment here you grant this site a perpetual license to reproduce your words and name/web site in attribution. Please understand with hundreds of SPAM comments, it takes a while to sort through to approve the good comments. Sometimes, by accident, some good comments accidentally get marked as spam. Please let us know if your comment did not get posted. Also, if your comment has a link to it or anything else in it that would make it seem like spam, it will be deleted. So please post a real comment and not one that is only made to link to a site only. Otherwise, it could get deleted.

bottom bottom bottom