Change navbar to link straight to post or page
-
The template I am using is techified and I would like to change the navbar to link directly to the post, not the category as it does now.
Here is the code for header.php. I’m assuming this would be where the change would be made.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="https://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title> <?php if (is_home()) { ?> <?php bloginfo('name'); ?> - <?php bloginfo('description'); ?> <?php } else if (is_category()) { ?> <?php wp_title(''); ?> - <?php bloginfo('name'); ?> <?php } else if (is_single() || is_page()) { ?> <?php wp_title(''); ?> - <?php bloginfo('name'); ?> <?php } else if (is_archive()) { ?> <?php bloginfo('name'); ?> - <?php if (is_day()) { ?> Archive for <?php the_time('F jS Y'); ?> <?php } elseif (is_month()) { ?> Archive for <?php the_time('F Y'); ?> <?php } elseif (is_year()) { ?> Archive for <?php the_time('Y'); ?> <?php } ?> <?php } ?> </title> <link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/css/jd.gallery.css" type="text/css" media="screen" charset="utf-8" /> <link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/css/MenuMatic.css" type="text/css" media="screen" charset="utf-8" /> <link href="<?php bloginfo('template_directory'); ?>/style.css" rel="stylesheet" type="text/css" /> <script src="<?php bloginfo('template_directory'); ?>/scripts/mootools-1.2.1-core-yc.js" type="text/javascript"></script> <script src="<?php bloginfo('template_directory'); ?>/scripts/mootools-1.2-more.js" type="text/javascript"></script> <script src="<?php bloginfo('template_directory'); ?>/scripts/jd.gallery.js" type="text/javascript"></script> <script src="<?php bloginfo('template_directory'); ?>/scripts/jd.gallery.transitions.js" type="text/javascript"></script> <!--[if lt IE 7]> <link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/css/MenuMatic-ie6.css" type="text/css" media="screen" charset="utf-8" /> <![endif]--> <!-- Load the MenuMatic Class --> <script src="<?php bloginfo('template_directory'); ?>/js/MenuMatic_0.68.3.js" type="text/javascript" charset="utf-8"></script> <link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/style.css" type="text/css" media="screen" /> <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" /> <link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" /> <link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" /> <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" /> <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <?php wp_get_archives('type=monthly&format=link'); ?> <?php wp_head(); ?> </head> <body> <script type='text/javascript' src='https://track2.mybloglog.com/js/jsserv.php?mblID=2008082321350630'></script> <script type="text/javascript"> window.addEvent('domready', function() { var myMenu = new MenuMatic(); }); <?php if (is_home()) : ?> function startGallery() { var myGallery = new gallery($('myGallery'), { timed: true, delay: 10000, slideInfoZoneOpacity: 0.8 }); } window.addEvent('domready', startGallery); <?php endif; ?> </script> <div id="wrapper"> <!--<div id="top_area"> <div id="top_area_content"> <div class="left"> <ul> <li id="<?php if (is_home()) { ?>home<?php } else { ?>page_item<?php } ?>"><a href="<?php bloginfo('url'); ?>" title="Home">Home</a></li> <?php wp_list_pages('title_li=&depth=1'); ?> </ul> </div> <div class="right"> <ul> <li><a href="<?php bloginfo('rss2_url'); ?>">RSS Feed</a></li> <li><a href="<?php bloginfo('comments_rss2_url'); ?>">Comments</a></li> <li><a href="<?php echo get_option('techified_subscribe_url'); ?>">Email</a></li> </ul> </div> </div> </div> --> <div id="header"> <div id="header_content"> <div id="logo"> <img src="wp-content/uploads/2009/12/logo.png"> </div> <div id="search_box"> <form action="<?php bloginfo ('home'); ?>" method="get"> <input name="s" id="s" alt="Search" class="inputbox" type="text" size="20" value="search the site" onblur="if(this.value=='') this.value='search the site';" onfocus="if(this.value=='looking for something?') this.value='';" /> </form> </div> </div> </div> <div id="navigation_area"> <ul id="nav"> <?php wp_list_categories('exclude=1&hide_empty=0&orderby=name&show_count=0&use_desc_for_title=1&title_li='); ?> <li><a href="<?php echo get_option('home'); ?>">Home</a></li> </ul> </div> <div id="content_area"> <div id="content_area_content"> <div id="left_content">
- The topic ‘Change navbar to link straight to post or page’ is closed to new replies.