I created a blog page with no sidebars and just a header (logo), but the header still has a navigation bar. How do I eliminate the navigation bar without affecting the rest of my normal pages. Do I have to create a second header.php file (header2.php) and modify it to eliminate the navigation bar and then call for it in the page-nosidebar.php file? What EXACTLY would the call look like if this is the case. Any help would be greatly appreciated. Robert Here are the codes for the page-nosidebar.php file and the header-nonavigation.php file *********** page-nosidebar.php <?php /* Template Name: Page Template (No Sidebars) */ ?> <?php get_header(); ?> <div id="contentleft" style="width:100%;"> <div id="content" style="width:100%;"> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="singlepost"> <div class="post clearfix maincontent" style="margin-bottom:0;" id="post-<?php the_ID(); ?>"> <div class="entry clearfix"> <h1><?php the_title(); ?></h1> <?php the_content(); ?> </div> </div> </div> <?php endwhile; endif; ?> </div> </div> <?php get_footer(); ?> ********** header-nonavigation.php <!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/11"> <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> <title><?php wp_title(' '); ?> <?php if(wp_title(' ', false)) { echo ' : '; } ?><?php bloginfo('name'); ?></title> <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <meta name="description" content="<?php bloginfo('description'); ?>" /> <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" /> <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" /> <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" /> <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?> <script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/suckerfish.js"></script> <?php wp_head(); ?> <?php global $options; foreach ($options as $value) { if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); } } ?> </head> <body> <div id="wrap"> <div id="header" class="clearfix"> <div id="head-content" class="clearfix"> <div id="sitetitle"> <?php if (is_home()) { ?> <h1><?php bloginfo('name'); ?></h1> <?php } else { ?> <div class="title"><?php bloginfo('name'); ?> </div> <?php } ?> <div class="description"><?php bloginfo('description'); ?></div> </div> <?php if ( $wp_chatter_ad468head == yes ) { ?> <div id="head-banner468"> <?php echo stripslashes($wp_chatter_ad468head_code); ?> </div> <?php } ?> </div> <img src="http://yourbabygenius.com/wp-content/themes/Babies/images/banner.png" width="980" height="408" alt="Babies" /> <div id="topnav" class="clearfix"> <ul class="clearfix" style="font-size: 16px"> <strong> <li<?php if (is_home() || is_front_page()) { echo " class=\"current_page_item\""; } ?>><a rel="<?php _e("bookmark"); ?>" title="<?php _e("Home"); ?>" href="<?php bloginfo('url'); ?>"><?php _e("Home"); ?></a></li> <?php wp_list_pages('title_li='); ?> </ul> </strong> <?php include (TEMPLATEPATH . '/searchform.php'); ?> </div> </div> <div id="page" class="clearfix">o
You're calling get_header() to create the header. What does that function do? (I suspect it creates a header with a nav bar.) If this is someone else's blog, Blogger, WordPress, etc., you'll have to tell us what blog you're using and what template you're using with it. And don't expect answers if it's complex. Many people don't want to spend 8 hours finding an answer for you without getting paid. But if I'm correct, you can just copy get_header(), rename it, take out the nav bar code, and use that for the page without the nav bar. (Or, if you want to learn something, put an optional parameter in the function and, if the parameter is 'none', or whatever you want to use, skip the nav bar generation code. I say learn something, because you'd have to learn optional parameters and how to use them.)
also known as, "you don't know shit" to remove the scroll bars, its <style> body { overflow: hidden; } </style> Code (markup): and to remove the nav, you have to use javascript to make a popup window in a new page, which is not what your looking for. i'd suggest you take a look at the iframe tags. Ps, Rukbat, don't troll me and stop trolling everyone else.
I want to clarify that I know nothing about programming. I bought a niche site and am trying to modify it so I can have a page with no sidebars and no navigation bar in the header. My current test page at http://www.yourbabygenius.com/test-page-3/ has no sidebars but has the navigation bar. 9 days ago Rukbat in a different helpful post reply advised me how to eliminate the navigation bar in (header.php) file But the rest of my normal pages then had no navigation bar in the header. I created a second file (header2.php) but I don't know exactly how to modify the code in my page-nosidebar.php file to call this second header file. I guessed to try -- <?php get_header2(); ?> instead of <?php get_header(); ?> ...but all I got was this notice: Fatal error: Call to undefined function get_header2() in /home/yourbaby/public_html/wp-content/themes/Babies/page-nosidebar.php on line 7 So, I restored <?php get_header(); ?> for http://www.yourbabygenius.com/test-page-3/ If all this is proving to be extremely complicated, I apologize since I am not looking for a free fix that would normally command a significant fee. From my standpoint ( no knowledge of programming) I think the solution is in how to call up my the second file (header2.php) but I don't know how to do it. Help!!
Your second sentence requires a knowledge of programming (or the help of someone who has it), and your first sentence says you have none. Basically, you said, "I want to do something I can't do with the knowledge I have". I think the answer is obvious. Either learn programming (you can't do it over the weekend, but it's not so difficult that a person of average intelligence can't learn it) or get someone to modify it for you.
rename your "header2.php" to "header-2.php", then you call it by <?php get_header(); ?> Code (markup):