Jump to content


Photo

Wordpress header? help


  • Please log in to reply
3 replies to this topic

#1 okfalls

okfalls
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 28 October 2006 - 02:54 PM

Hi. I am new to PHP and learning. I recently d/loaded and installed a theme "Shaded Grey" What I need help with is there are links I have, that installed above the header see http://blog.rodrose.com What I would like to do is have the links inside the header or at least just below it. Is there someone who can help me with the editing of the code to do this. I am not sure where the code is for this problem. I see the links etc when I do a view "page source " , but still can't relate what I see to what must be edited. I appreciate and help in this matter.Thanks. Rod :-)

#2 charlieholder

charlieholder
  • Members
  • PipPipPip
  • Advanced Member
  • 1,419 posts
  • LocationAtlanta, GA

Posted 28 October 2006 - 03:12 PM

Go to /wp-content/themes/k2/header.php

Look for the PHP code that contains your <ul id="gnav"> and move everything between <ul id="gnav"> and </ul> inside <div id="header">. Once inside that header div it should place your navigation links on top of the header. From there you'll just have to modify the CSS until the placement, colors, etc. are to your liking. IF you have any more problems or that doesn't work, shoot me a PM.

PHP Manual | MySQL Reserved Words

Please mark TOPIC SOLVED when you've reached a solution.
Adding [code][/code] tags around your code increases your chances of receiving help.

I don't always test the code I write.


#3 okfalls

okfalls
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 28 October 2006 - 04:15 PM

Well I tried,but nada, nyet, zip... I don't quite get the <div id="rap"> thingy see code... and also I would like the links below the header image. Thanks again... I appreciate the help.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR...nsitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head profile="http://gmpg.org/xfn/1">
<title><?php bloginfo('name'); ?><?php wp_title(); ?></title>

<meta http-equiv="Content-Type" content="text/html; charset=<?php bloginfo('charset'); ?>" />
<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats please -->
<style type="text/css" media="screen">
@import url( <?php bloginfo('stylesheet_url'); ?> );
</style>
<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'); ?>" />
    <?php wp_get_archives('type=monthly&format=link'); ?>
<?php //comments_popup_script(); // off by default ?>
<?php
// Load functions for active theme.
if ( file_exists(TEMPLATEPATH . "/functions.php") )
include_once(TEMPLATEPATH . "/functions.php");
?>
<?php wp_head(); ?>
</head>

<body>
<div id="rap">
<ul id="gnav">
<li <?php if(is_home()){echo 'class="current_page_item"';}?>><a href="<?php bloginfo('siteurl'); ?>" title="Home">Home</a></li>
<?php wp_list_pages('title_li=&depth=1&'.$page_sort)?>
</ul>
<div id="header">

<h1><a href="<?php bloginfo('url'); ?>" title="<?php bloginfo('name'); ?>"><?php bloginfo('name'); ?></a></h1>

#4 dtyson2000

dtyson2000
  • Members
  • PipPipPip
  • Advanced Member
  • 93 posts

Posted 28 October 2006 - 06:06 PM

Looks like you just need to move the

	<ul id="gnav">
		<li class="current_page_item"><a href="http://blog.rodrose.com" title="Home">Home</a></li>
		<li class="page_item"><a href="http://blog.rodrose.com/?page_id=5" title="12 Steps">12 Steps</a></li>
	<li class="page_item"><a href="http://blog.rodrose.com/?page_id=6" title="12 Traditions ">12 Traditions </a></li>
	<li class="page_item"><a href="http://blog.rodrose.com/?page_id=2" title="AA Preamble">AA Preamble</a></li>
	<li class="page_item"><a href="http://blog.rodrose.com/?page_id=9" title="As Bill Sees It">As Bill Sees It</a></li>
	<li class="page_item"><a href="http://blog.rodrose.com/?page_id=11" title="Contact Form">Contact Form</a></li>
	<li class="page_item"><a href="http://blog.rodrose.com/?page_id=42" title="Local Meetings">Local Meetings</a></li>
	</ul>

to

</div> 

	<ul id="gnav">
		<li class="current_page_item"><a href="http://blog.rodrose.com" title="Home">Home</a></li>
		<li class="page_item"><a href="http://blog.rodrose.com/?page_id=5" title="12 Steps">12 Steps</a></li>
	<li class="page_item"><a href="http://blog.rodrose.com/?page_id=6" title="12 Traditions ">12 Traditions </a></li>
	<li class="page_item"><a href="http://blog.rodrose.com/?page_id=2" title="AA Preamble">AA Preamble</a></li>
	<li class="page_item"><a href="http://blog.rodrose.com/?page_id=9" title="As Bill Sees It">As Bill Sees It</a></li>
	<li class="page_item"><a href="http://blog.rodrose.com/?page_id=11" title="Contact Form">Contact Form</a></li>
	<li class="page_item"><a href="http://blog.rodrose.com/?page_id=42" title="Local Meetings">Local Meetings</a></li>
	</ul>	

<div id="content">

That's between the end header div and the div id="content" statements.

Hope that helps: nothing like a little electronic 12th step work.  ;)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users