Remove link to WordPress.org in Meta

I’m pullin’ my hair out here. I can’t find anywhere in my installations of WP that has the link to WordPress.org, but there it is, in the Meta widget, plain as day. I’d like to keep the Meta widget, but I really don’t want the link to WP. Does anyone know how to get rid of it?

Thanks,

Jim

You mean the <meta name=“generator” value=“WordPress 2.6” /> tag?

Two places. First, check your theme’s header file (header.php), since you have two copies of this tag in your source.

Second, it’s one of the default filters in wp-includes/default-filters.php.

add_action(‘wp_head’, ‘wp_generator’);

To override that, edit the functions.php of your theme and add this:

remove_action('wp_head', 'wp_generator'); 

Edit the text widget to contain the links you want and remove the meta widget from the sidebar.

PS:
You can edit it directly by editing the widgets.php file located in the wp-includes folder starting on line 532, it looks like all you will need to do is comment out/remove the one <li></li>

function wp_widget_meta($args) {
	extract($args);
	$options = get_option('widget_meta');
	$title = empty($options['title']) ? __('Meta') : apply_filters('widget_title', $options['title']);
?>
		<?php echo $before_widget; ?>
			<?php echo $before_title . $title . $after_title; ?>
			<ul>
			<?php wp_register(); ?>
			<li><?php wp_loginout(); ?></li>
			<li><a href="<?php bloginfo('rss2_url'); ?>" title="<?php echo attribute_escape(__('Syndicate this site using RSS 2.0')); ?>"><?php _e('Entries <abbr title="Really Simple Syndication">RSS</abbr>'); ?></a></li>
			<li><a href="<?php bloginfo('comments_rss2_url'); ?>" title="<?php echo attribute_escape(__('The latest comments to all posts in RSS')); ?>"><?php _e('Comments <abbr title="Really Simple Syndication">RSS</abbr>'); ?></a></li>
			<li><a href="http://wordpress.org/" title="<?php echo attribute_escape(__('Powered by WordPress, state-of-the-art semantic personal publishing platform.')); ?>">WordPress.org</a></li>
			<?php wp_meta(); ?>
			</ul>
		<?php echo $after_widget; ?>

Though this is something you will have to keep up with everytime you upgrade. :slight_smile:

No, I wasn’t referring to that. Sorry for the confusion.

Two places. First, check your theme’s header file (header.php), since you have two copies of this tag in your source.

I don’t have that in my theme header file and I only see one in the source. You sure you haven’t been drinkin’? :rofl:

Second, it’s one of the default filters in wp-includes/default-filters.php.

To override that, edit the functions.php of your theme and add this:

remove_action('wp_head', 'wp_generator'); 

Interesting. Is there any benefit to removing the generator meta tag?

Thanks. I think I can manage this.

PS:
You can edit it directly by editing the widgets.php file located in the wp-includes folder starting on line 532, it looks like all you will need to do is comment out/remove the one <li></li>

Though this is something you will have to keep up with everytime you upgrade. :slight_smile:

I am loathe to edit any of the non-theme application files - for the same reason you stated. Too many updates, not enough time. :smiley:

Thanks for the help, you guys, I appreciate it.

Jim

I have the same problem - thought it something to do with cache becuase I can get rid of the links by editing sidebar.php in a local copy of the website but not on the site itself - can’t find any delete cache though - did you ever solve this- all the suggested solutions seem wrong - are you using a theme called fishy-10? it is fishy too with some hidden links in it!

I just can’t stand being forced to link to WordPress in my sidebar. As hesitant to edit non-theme pages, I decided to edit the wp-includes/widgets.php file. Did a search for [noparse]http://wordpress.org[/noparse] and found it on line 544 (depending on WP version, your lineage may vary). I made a note to myself to edit that file before doing an upgrade. Extra pain in the ***, but I guess ya gotta do what ya gotta do.

R’gards,

Jim

Come on they made such an awesome software the least you can do is give them a link back for the work!

I do. Just not in the main navigation. I have even written articles with references to WP and linked to them from within the article with what I hope are good anchor text. I do my best to pay my dues - but even WP says I am not required to. They are not relevant to the majority of my content and certainly not my navigation links, so out they go.

Jim

Editing core files is just a bad idea… just don’t use the meta widget.

I agree. Each time you upgrade your version of WordPress you’ll need to edit that file again anyway.

You could try removing the meta widget and adding the rest of the meta code (minus the WordPress.org link) manually to your theme.

can you use something like DW to do an auto find and replace? thats what I do when I can’t find it myself

@BPartch
i’ve been wandering for days now thinking about what to do to what file
and finally, tada!!
you’re the man, BPartch!
thanks a lot!

Always glad to be of help. :slight_smile:

this is what i want to say

Thanks all for your help…that was useful.

This wont work in WP 2.9…

The code has moved from one file to another.

Here is an updated tutorial: http://kthxbai2u.com/archives/56

If you dont want link for wp.com than dont insert META. You can have widget called BLOGROLL where you can insert what evr links you want.

Thanks this helps me in solving my clients error… :slight_smile:

Regards
Rajesh Kanuri