okfalls Posted October 28, 2006 Share Posted October 28, 2006 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 :-) Quote Link to comment https://forums.phpfreaks.com/topic/25400-wordpress-header-help/ Share on other sites More sharing options...
soycharliente Posted October 28, 2006 Share Posted October 28, 2006 Go to /wp-content/themes/k2/header.phpLook 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. Quote Link to comment https://forums.phpfreaks.com/topic/25400-wordpress-header-help/#findComment-115846 Share on other sites More sharing options...
okfalls Posted October 28, 2006 Author Share Posted October 28, 2006 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/xhtml1/DTD/xhtml1-transitional.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> Quote Link to comment https://forums.phpfreaks.com/topic/25400-wordpress-header-help/#findComment-115900 Share on other sites More sharing options...
dtyson2000 Posted October 28, 2006 Share Posted October 28, 2006 Looks like you just need to move the [code] <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>[/code]to[code]</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">[/code]That's between the end header div and the div id="content" statements.Hope that helps: nothing like a little electronic 12th step work. ;) Quote Link to comment https://forums.phpfreaks.com/topic/25400-wordpress-header-help/#findComment-115961 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.