• Hi, I am a WP novice trying to change the header in my theme. I have successfully uploaded a .jpg and incorporated the page title and description in text. I would now like to remove some buttons / links (to home, admin and about) that are in the header. However, I can’t find any references to these links in the header.php (or anywhere else in the CSS). I am guessing this is embedded in some file the CSS is referencing? Any suggestions on how to change this?

    My site is mitchkumstein.com. A large chunk of the header.php below. Thanks for the help!

    <head profile=”https://gmpg.org/xfn/11″&gt;
    <meta http-equiv=”Content-Type” content=”<?php bloginfo(‘html_type’); ?>; charset=<?php bloginfo(‘charset’); ?>” />
    <meta name=”generator” content=”WordPress <?php bloginfo(‘version’); ?>” /> <!– leave this for stats –>
    <meta name=”keywords” content=”LEMONed, iLEMONed, WordPress, Themes, CSS, Design” />
    <title><?php bloginfo(‘name’); ?><?php wp_title(); ?></title>
    <style type=”text/css” media=”screen”>
    @import url( <?php bloginfo(‘stylesheet_url’); ?> );
    </style>

    <!– Sweet Title –>
    <script type=”text/javascript” src=”<?php bloginfo(‘stylesheet_directory’); ?>/js/addEvent.js”></script>
    <script type=”text/javascript” src=”<?php bloginfo(‘stylesheet_directory’); ?>/js/sweetTitles.js”></script>

    <link rel=”alternate” type=”application/rss+xml” title=”RSS 2.0″ href=”<?php bloginfo(‘rss2_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 wp_head(); ?>
    </head>

    <body>
    <div id=”wrapper”>

    <div id=”header”>
    <ul class=”menu”>
    <li class=”<?php if ( is_home() or is_archive() or is_single() or is_paged() or is_search() or (function_exists(‘is_tag’) and is_tag()) ) { ?>current_page_item<?php } else { ?>page_item<?php } ?>”>
    “><?php _e(‘Home’); ?>

    <?php wp_list_pages(‘sort_column=id&depth=1&title_li=’); ?>
    <?php wp_register(‘

Viewing 3 replies - 1 through 3 (of 3 total)
  • Please edit your post and remove that code and replace it in between backticks. That’s the key above the tab key and to teh left of the ‘1’ key. That way we can see what is occuring.

    Else we can’t see what is occuring.

    Thread Starter mitchkumstein

    (@mitchkumstein)

    Sorry. Here it is:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="https://www.w3.org/1999/xhtml">
    
    <head profile="https://gmpg.org/xfn/11">
    	<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    	<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->
    	<meta name="keywords" content="LEMONed, iLEMONed, WordPress, Themes, CSS, Design" />
    	<title><?php bloginfo('name'); ?><?php wp_title(); ?></title>
    	<style type="text/css" media="screen">
    		@import url( <?php bloginfo('stylesheet_url'); ?> );
    	</style>
    
    	<!-- Sweet Title -->
    	<script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/addEvent.js"></script>
    	<script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/sweetTitles.js"></script>
    
    	<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_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 wp_head(); ?>
    </head>
    
    <body>
    <div id="wrapper">
    
    <div id="header">
    	<ul class="menu">
    		<li class="<?php if ( is_home() or is_archive() or is_single() or is_paged() or is_search() or (function_exists('is_tag') and is_tag()) ) { ?>current_page_item<?php } else { ?>page_item<?php } ?>">
    			<a href="<?php echo get_settings('home'); ?>"><?php _e('Home'); ?></a>
    		</li>
    		<?php wp_list_pages('sort_column=id&depth=1&title_li='); ?>
    		<?php wp_register('<li>','</li>'); ?>
    	</ul>
    	<h1><a href="<?php echo get_settings('home'); ?>" title="<?php bloginfo('name'); ?>"><?php bloginfo('name'); ?></a></h1>
    
    <div class="description"><?php bloginfo('description'); ?></div>
    </div>
    <!-- End of #header -->
    
    <div id="content">

    I would now like to remove some buttons / links (to home, admin and about) that are in the header. However, I can’t find any references to these links in the header.php (or anywhere else in the CSS).

    home:

    <li class="<?php if ( is_home() or is_archive() or is_single() or is_paged() or is_search() or (function_exists('is_tag') and is_tag()) ) { ?>current_page_item<?php } else { ?>page_item<?php } ?>">
    <a href="<?php echo get_settings('home'); ?>"><?php _e('Home'); ?></a>
    </li>

    about:

    <?php wp_list_pages('sort_column=id&depth=1&title_li='); ?>

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Removing links from header’ is closed to new replies.