/    Sign up×
Community /Pin to ProfileBookmark

Menu Issue in WordPress Layout

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/[/url]

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” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd“>
<html xmlns=”http://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(‘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

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@scragarOct 12.2007 — by the looks of it cutting:
[code=php]<?php include (TEMPLATEPATH . '/searchform.php'); ?>[/code]out of the sidebar page and pasting it above:
[code=html]<h2 class="hide">Main menu:</h2>
<ul class="page">[/code]
in your main page. should work, if not let me know what errors you get ?
Copy linkTweet thisAlerts:
@spaceguy46authorOct 12.2007 — Man, that was fast. I tried it and it worked perfectly right away.

Thanks, mate. You know your stuff.

Nathan?
×

Success!

Help @spaceguy46 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.10,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...