How to remove a header?

by Sylent
6 replies
  • WEB DESIGN
  • |
Code:
<!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" dir="ltr" lang="en-US">
<head profile="http://gmpg.org/xfn/11">
<title>
<?php if (is_home()) { ?>
<?php bloginfo('Cheap Games Empire'); ?>
-
<?php bloginfo('description'); ?>
<?php } else { ?>
<?php wp_title($sep = ''); ?>
-
<?php bloginfo('name'); ?>
<?php } ?>
</title>
<meta http-equiv="content-type" content="<?php bloginfo('html_type') ?>; charset=<?php bloginfo('charset') ?>" />
<meta name="description" content="<?php bloginfo('description') ?>" />
<?php if(is_search()) { ?>
<meta name="robots" content="noindex, nofollow" />
<?php }?>
<link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" media="screen" />
<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/coin-slider-styles.css" media="screen" />
<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/menusm.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'); ?>" />
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery-1.4.2.min.js"><!-- jQuery --></script>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/coin-slider.min.js"><!-- slider --></script>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/cufon-yui.js">        <!-- cufon --></script>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/cufon-colab-b.js">    <!-- cufon font --></script>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/menusm.js">            <!-- menu --></script>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/script.js">            <!-- scripts for use --></script>
<?php wp_head(); ?>
</head>
<body>
<div id="page">
<div id="header">
  <div class="logo">
    <h1><a href="<?php echo get_option('home'); ?>/" title="<?php bloginfo('name'); ?> - <?php bloginfo('description'); ?>">
      <?php bloginfo('name'); ?>
      <small>
      <?php bloginfo('description'); ?>
      </small></a></h1>
  </div>
  <!--/logo -->
  <div class="topnav">
    <ul class="menusm">
      <?php wp_list_pages('title_li='); ?>
    </ul>
    <div class="clr"></div>
  </div>
  <!--/topnav -->
  <div class="clr"></div>
  <div id="nav1">
    <ul class="menusm">
      <?php wp_list_categories('title_li='); ?>
    </ul>
    <div class="clr"></div>
  </div>
  <div class="clr"></div>
  <div class="slider">
    <div id="coin-slider"> <a href="#"><img src="<?php bloginfo('template_directory'); ?>/images/slide1.jpg" width="960" height="268" alt="slide1" /><span>Games<small>Lorem ipsum dolor sit amet, consectetng elit. Donec ut felis ipsum. Maecenas lacinia orci cursus<br />
      lacus sodales in posuere risus gravida.</small></span></a> <a href="#"><img src="<?php bloginfo('template_directory'); ?>/images/slide2.jpg" width="960" height="268" alt="slide2" /><span>Original Abstract<small>Donec ut felis ipsum. Maecenas lacinia orci cursus lacus sodales in posuere risus gravida.<br />
      Nullam sodales ipsum sed nulla sollicitudin quis rhoncus ante sagittis. </small></span></a> <a href="#"><img src="<?php bloginfo('template_directory'); ?>/images/slide3.jpg" width="960" height="268" alt="slide3" /><span>Businessman Freedom Concept<small>Donec ut felis ipsum. Maecenas lacinia orci cursus lacus<br />
      sodales in posuere risus gravida.</small></span></a> </div>
  </div>
  <div class="clr"></div>
  <!-- /slider -->
</div>
<!--/header-->
At the very top of this site Remove me!- I want to dissapear That entire header I want removed, I have no clue how to do any coding so thought I'd ask here. Just a random test site for stuff I no longer use so dont mind how awful the site is please.
#header #remove
  • Profile picture of the author Karen Barr
    Without digging too deep, I think removing this part will do the trick:

    PHP Code:
    <div class="logo">     
    <h1><a href="<?php echo get_option('home'); ?>/" title="<?php bloginfo('name'); ?> - <?php bloginfo('description'); ?>">       <?php bloginfo('name'); ?>       
    <small>       
    <?php bloginfo('description'); ?>       
    </small></a></h1>   
    </div>   
    <!--/logo -->
    {{ DiscussionBoard.errors[3918062].message }}
  • Profile picture of the author Karen Barr
    Back up before you do it!
    {{ DiscussionBoard.errors[3918067].message }}
    • Profile picture of the author Sylent
      Perfect thanks!
      {{ DiscussionBoard.errors[3919674].message }}
  • Profile picture of the author newbie365
    remove everything from here:
    <div id="header">

    TO

    <!--/header-->
    {{ DiscussionBoard.errors[3921443].message }}
  • Profile picture of the author tonymontana007
    they are quite right...and that's really easy removing a header...
    {{ DiscussionBoard.errors[3949621].message }}
  • Profile picture of the author alanpedersen
    Yeah thanks for this nice sharing karen .....
    {{ DiscussionBoard.errors[3951780].message }}

Trending Topics