WordPress Meta Widget Hack


Recommended Posts

Hey,

A little how-to guide I posted regarding removing un-needed links from the WordPress Meta Widget. Read the original here :)

By default WordPress installations display a Meta widget in the sidebar. This widget is used as a quick-access navigation box containing:

  • Login/Logout
  • Register
  • Site Admin
  • Entries RSS
  • Comments RSS
  • WordPress.org link

If you're users use FeedBurner, and click on the RSS links, they maybe confused to which links they are using - not good. Also, most templates already display a "Powered by WordPress" link in the footer, it's not really needed again. So the best thing we can do is remove these deprecated links.

In previous versions of WordPress < 2.8 it was very simple to do so, however since the upgrade there have been some changes. For versions below 2.8; take a look at wp-includes/widgets.php around line <strong>847[/b].

In newer versions the file has been been moved to wp-includes/default-widgets.php to line 298-300.

To remove the links simply locate these lines:

&lt;li&gt;&lt;a href="&lt;?php bloginfo('rss2_url'); ?&gt;" title="&lt;?php echo esc_attr(__('Syndicate this site using RSS 2.0')); ?&gt;"&gt;&lt;?php _e('Entries &lt;abbr title="Really Simple Syndication"&gt;RSS&lt;/abbr&gt;'); ?&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="&lt;?php bloginfo('comments_rss2_url'); ?&gt;" title="&lt;?php echo esc_attr(__('The latest comments to all posts in RSS')); ?&gt;"&gt;&lt;?php _e('Comments &lt;abbr title="Really Simple Syndication"&gt;RSS&lt;/abbr&gt;'); ?&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://wordpress.org/" title="&lt;?php echo esc_attr(__('Powered by WordPress, state-of-the-art semantic personal publishing platform.')); ?&gt;"&gt;WordPress.org&lt;/a&gt;&lt;/li&gt;

Save and re-upload.

meta.png

meta-after.png

Link to comment
Share on other sites

  • 3 weeks later...
Actually yes!

I hate all that RSS crap

cheers!

No problem Grunt!

I already knew this. =o

Same, I just thought it would be good to put it into a resource which everyone can find.

Link to comment
Share on other sites

I cannot understand those, because i am new here and a noob about your question.

It's not a question, it's a guide.

Link to comment
Share on other sites

  • 3 months later...
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.