Hello All,
I have a problem in PHP 😮 that I’m unable to overcome, largely due to not knowing the language. I done some cut and paste on a couple of pages trying to figure it out, to no avail. The site I’m working on is located here:
[url]http://www.travelswithnathan.com/
What I want to do is to move the Search function to the top of the page with the Home and About tags sitting below it, but I’ve been unable to do so.
Here are the two pages that I’ve been trying to work with:
The first page is header:
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “
<html xmlns=”
<head>
<meta http-equiv=”content-type” content=”text/html; charset=<?php bloginfo(‘charset’); ?>” />
<meta name=”description” content=”<?php bloginfo(‘description’);?>” />
<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=”header”>
</div>
<div id=”leftside”>
<h2 class=”hide”>Main menu:</h2>
<ul class=”page”>
<?php if (is_page()) { $highlight = “page_item”; } else {$highlight = “page_item current_page_item”; } ?>
<li class=”<?php echo $highlight; ?>”><a href=”<?php bloginfo(‘url’); ?>”>Home</a></li>
<?php wp_list_pages(‘sort_column=menu_order&depth=1&title_li=’); ?>
</ul>
<?php get_sidebar(); ?>
</div>
<div id=”frontphoto”><img src=”<?php bloginfo(‘stylesheet_directory’); ?>/img/front.jpg” width=”590″ height=”175″ alt=”<?php bloginfo(name);?>” /></div>
and the second page I’m working with is named sidebar:
<div id=”extras”>
<?php include (TEMPLATEPATH . ‘/searchform.php’); ?>
<?php if ( function_exists(‘dynamic_sidebar’) && dynamic_sidebar() ) : else : ?>
<h2>Categories</h2>
<ul>
<?php wp_list_cats(‘sort_column=name&list=0&optioncount=1&hierarchical=1&children=1&hide_empty=0’); ?>
</ul>
<h2>Archive</h2>
<ul>
<?php wp_get_archives(‘type=monthly&show_post_count=1’); ?>
</ul>
<!– <h2>Links</h2> –>
<ul class=”linklist”>
<?php get_links_list(); ?>
</ul>
<?php //wp_meta(); ?>
<?php endif; ?>
</div>
I hope these are the right files. If someone can help me, I’d really appreciate it.
Regards,
Nathan