Calendar
February 2012
S M T W T F S
« Jan    
 1234
567891011
12131415161718
19202122232425
26272829  
What’s She Doing Now?




Shape Shifter
Rough Draft

50,000words.
75% done!
Gallery
welcome-2012 welcome-2012-a merry-christmas happy_family angry-couple stepdadimg
Categories
Archives
I Quit!!
E-cigarettes = Inhaling vapor and is not smoking. Don't listen to the FDA. Do your own in depth research and find out for yourself the truth about E-cigarettes.
Read this site and go from there: Tobacco Harm Reduction

Posts Tagged ‘Editing Meta Widget In Wordpress’

Editing Meta Widget In WordPress

In your wp files go to wp_includes folder, and find the default-widgets.php files. You are going to want to find the meta widget function (line 300) and once you have found that, you can edit the Meta Widget as needed. I wanted to delete the wordpress link. This is what I did:

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>
DELETE ——–> <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> <———DELETE
<?php wp_meta(); ?>
</ul>
<?php echo $after_widget; ?>
<?php

It will look like this instead

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>
<?php wp_meta(); ?>
</ul>
<?php echo $after_widget; ?>
<?php

Then I saved the file and the offending link was gone.