How can i post a header link on a modified theme?
-
can i make my header be a link as well so you can click it to go back to the home page?
in my header.php it goes as follows:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="https://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=<?php bloginfo('charset'); ?>" /> <meta name="description" content="<?php bloginfo('name'); ?> - <?php bloginfo('description'); ?>" /> <meta name="keywords" content="" /> <link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" /> <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'); ?>" /> <title><?php bloginfo('name'); wp_title(); ?></title> <?php wp_head(); ?> </head> <body> <div id="wrap"> <div id="top"> <div id="menu"> <ul> <?php if (is_page()) { $highlight = "page_item"; } else {$highlight = "page_item current_page_item"; } ?> <li class="<?php echo $highlight; ?>"><a href="<?php bloginfo('url'); ?>"><span>Home</span></a></li> <?php $pages = wp_list_pages('sort_column=menu_order&depth=1&title_li=&echo=0'); $pages = preg_replace('%<a ([^>]+)>%U','<a $1><span>', $pages); $pages = str_replace('</a>','</span></a>', $pages); echo $pages; ?> </ul> </div> <div id="search"> <form method="get" id="searchform" action="<?php bloginfo('url'); ?>/"> <div> <input type="text" name="s" id="s" class="field" value="Searching for ?" onfocus="if (this.value == 'Searching for ?') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Searching for ?';}" /> <input type="image" src="<?php bloginfo('template_directory'); ?>/img/icon_search.gif" class="submit" name="submit" /> </div> </form> </div> </div> <div id="header"> <h1><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></h1> <p><?php bloginfo('description'); ?></p> </div>
Viewing 13 replies - 1 through 13 (of 13 total)
Viewing 13 replies - 1 through 13 (of 13 total)
- The topic ‘How can i post a header link on a modified theme?’ is closed to new replies.