Php Issue: How do I remove that RSS feed icon from the header?

by edmltw
3 replies
Hey professional coders,

I have been trying to remove the "entries (RSS)" & "Comments (RSS)" icons from the header.php without success.

Could anyone advice me on the proper way to do so?

Below's the coding:

<!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" <?php language_attributes(); ?>>

<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> &raquo; Blog Archive <?php } ?> <?php wp_title(); ?></title>
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<!--[if IE 7]>
<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/ie7.css" type="text/css" media="screen" />
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/ie.css" type="text/css" media="screen" />
<?php wp_head(); ?>
</head>
<body>

<div id="page-top">
<div id="wrapper-top">
<div id="top-primary">
<div id="header">
<div id="title">
<h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
<div class="tagline"><?php bloginfo('description'); ?></div>
</div><!-- end "title" -->
<div id="navbar">
<ul>
<?php wp_list_pages('sort_column=menu_order&depth=1&titl e_li='); ?>
<?php wp_register('<li class="admintab">','</li>'); ?>
</ul>
</div><!-- end "navbar" -->
</div><!-- end "header" -->

<div id="main-posts">





Is it possible to remove both the RSS feed buttons? At the same time, could it be possible to remove the wordpress icon?

Many thanks!!!

Edmund
#feed #header #icon #issue #php #remove #rss
  • Profile picture of the author mywebwork
    Hi Edmund

    I actually don't see the code for either the logo or RSS feed in your header, it's probably in another file. Without seeing the rest of your theme I can't say for sure, my guess is it's in the same file as your Search box.

    If you do a "View Source" on your page after its rendered you should be able to spot the location of this. Once you find that, look through the other files to find its location - looking for the <div> that surrounds it is probably the easiest way.

    Working with the theme on your local hard drive and using an editor like PS Pad that allows searching the contents of a group of file would make this a lot easier.

    editor PSPad - freeware HTML editor, PHP editor, XHTML, JavaScript, ASP, Perl, C, HEX editor

    Good luck

    Bill
    {{ DiscussionBoard.errors[1510500].message }}
  • Profile picture of the author DarkLour
    whats the URL , its going to be in the stylesheet i bet. search your stylesheet for rss.gif or something. as to the WP symbol on many themese its how wordpress does some site stats stuff so you may need to find that in your code too see what the style="whatever" is for it and make whatever 0px or something in your stylesheet. its hard to tell with no url to look at.
    Signature

    Best Regards,
    James
    Culinary Website Design : Cooking Blog :

    {{ DiscussionBoard.errors[1522507].message }}
  • Profile picture of the author rufaswan
    Since I can't see the actual full web page, or at least the picture of it. Based on your code, I assumed it is a two column theme, with sidebar on the right. Is that right?

    If that's the case, check your sidebar.php . I have a good hunch the code is there.

    - Rufas
    {{ DiscussionBoard.errors[1524774].message }}

Trending Topics