horizontal menu in the header
-
1. I want to add horizontal menu in the header which will have link to the static pages I haev created. I want to show this menu on all the pages, on category,posts etc.
2. I want to show pages link in all post,pages,…
Viewing 3 replies - 1 through 3 (of 3 total)
-
Try here, this helped me 🙂
any joy with this?
I’m still struggling to get mine to work, pasting this code (bolded) into my header.php just makes my blog a blank page! help someone?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US"> <!-- BEGIN html head --> <head profile="http://gmpg.org/xfn/11"> <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> <title><?php bloginfo('name'); ?> <?php wp_title(); ?></title> <link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" /> <!--[if lte IE 6]><link rel="stylesheet" type="text/css" href="<?php bloginfo('template_url'); ?>/ie.css" /><![endif]--> <script type="text/javascript" src="<?php bloginfo('template_url'); ?>/scripts.js"></script> <?php if (function_exists('wp_enqueue_script') && function_exists('is_singular')) : ?> <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?> <?php endif; ?> <?php wp_head(); ?> </head> <!-- END html head --> <body> <!-- BEGIN wrapper --> <div id="wrapper"> <!-- BEGIN header --> <div id="header"> </div> <div id="navmenu"> <ul> <li><a>">HOME</a></li> <?php wp_list_categories('orderby=name&include=1,3,4,5'); ?> <li><a href="http://www.wordpress.org">WORDPRESS</a></li> </ul> </div> </div> </div> <!-- END header -->
Thanks!
Replace
<?php bloginfo('template_url'); ?>
with<?php bloginfo('template_directory'); ?>
Exactly what code did you paste in?
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘horizontal menu in the header’ is closed to new replies.