<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>You Should Listen! &#187; Widget</title>
	<atom:link href="http://www.youshouldlisten.com/tag/widget/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.youshouldlisten.com</link>
	<description></description>
	<lastBuildDate>Fri, 16 Oct 2009 15:28:04 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Customizing WordPress Default Meta Widget</title>
		<link>http://www.youshouldlisten.com/2009/09/12/customizing-wordpress-default-meta-widget/</link>
		<comments>http://www.youshouldlisten.com/2009/09/12/customizing-wordpress-default-meta-widget/#comments</comments>
		<pubDate>Sat, 12 Sep 2009 17:16:46 +0000</pubDate>
		<dc:creator>Jay</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Widget]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.youshouldlisten.com/?p=335</guid>
		<description><![CDATA[This is my first time using WordPress 2.8. &#160;I actually upgraded from WordPress version very old. &#160;I&#8217;m very impressed by the new features. &#160;I really enjoy having the widgets on the sidebar. &#160;It has made things very easy to customize. &#160;WordPress has always had a good track record for making things easy to install, upgrade, [...]]]></description>
			<content:encoded><![CDATA[<p>This is my first time using WordPress 2.8. &nbsp;I actually upgraded from WordPress version very old. &nbsp;I&#8217;m very impressed by the new features. &nbsp;I really enjoy having the widgets on the sidebar. &nbsp;It has made things very easy to customize. &nbsp;WordPress has always had a good track record for making things easy to install, upgrade, and customize. &nbsp;However, when dealing with some of the customizations on the things that I wanted to do it wasn&#8217;t as easy as I was expecting.</p>
<p>Take for example, the Meta widget. &nbsp;I wanted to do something easy and just remove three of the links: Entries RSS, Comments RSS, and WordPress.org. &nbsp;I went to the widgets page in the admin section to just click the options to remove those links. &nbsp;To my surprise there were no options to do this!</p>
<p>I then started my day long quest to figure out what I could do to remove those three links. &nbsp;First, I went to Google and started searching for solutions. &nbsp;I found two that seemed promising. &nbsp;One I found on WordPress.org in a message thread. &nbsp;The solution was to create a text widget. &nbsp;However, this wouldn&#8217;t solve the problem of wanting to have the login, register, logout, and site admin links available.</p>
<p><span style="text-decoration: line-through;">Cross this option out.</span></p>
<p>The second option I found was a blog post on how to remove the links from the widget PHP code. &nbsp;Problem was that the post didn&#8217;t go into any details about how to do this. &nbsp;It just said to edit a file and make sure to back it up. &nbsp;It was not helpful.</p>
<p><span style="text-decoration: line-through;">Cross this option out.</span></p>
<p>After about an hour of research I decided to just dive into the code. &nbsp;I figured I&#8217;ve customized earlier versions of WordPress and other software packages so how hard could it really be?</p>
<p>I went and read the documentation on WordPress.org about widgets, how to create them, how to incorporate them into your current theme, etc. &nbsp;What I found really wasn&#8217;t too helpful. &nbsp;However, it did give me direction as to where to start and a great overview of how widgets work.</p>
<p>In order to customize the Meta widget I would have to look in the /wp-includes directory for the super class in the widgets.php file. &nbsp;This file has all the methods for registering your widget with WordPress so it knows it is available to use. &nbsp;Next, I found the default-widgets.php file.</p>
<p>This file actually has a lot of classes in it that have all the default widgets that WordPress comes with. &nbsp;It&#8217;s in this file which you need to edit. &nbsp;Around line 280 you&#8217;ll find a class called WP_Widget_Meta. &nbsp;This is the class you&#8217;ll want to edit. &nbsp;You&#8217;ll find the following code:</p>
<p><!--DEVFMTCODE--><pre class="devcodeblock" title="PHP"><div class="devcodeoverflow"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'rss2_url'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;</span> <span style="color: #000066;">title</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&lt; ?php echo esc_attr(__('Syndicate this site using RSS 2.0')); ?&gt;</span></span>&quot;&gt;<span style="color: #009900;">&lt; ?php _e<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'Entries &lt;abbr title=&quot;Really Simple Syndication&quot;&gt;</span></span>RSS'); ?&gt;<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'comments_rss2_url'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;</span> <span style="color: #000066;">title</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&lt; ?php echo esc_attr(__('The latest comments to all posts in RSS')); ?&gt;</span></span>&quot;&gt;<span style="color: #009900;">&lt; ?php _e<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'Comments &lt;abbr title=&quot;Really Simple Syndication&quot;&gt;</span></span>RSS'); ?&gt;<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://wordpress.org/&quot;</span> <span style="color: #000066;">title</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> esc_attr<span style="color: #009900;">&#40;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Powered by WordPress, state-of-the-art semantic personal publishing platform.'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;</span>&gt;</span>WordPress.org<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span></div></pre><!--END_DEVFMTCODE--></p>
<p>That is exactly what I was looking for! &nbsp;I just commented out those three lines of code and uploaded the file to my site and customization done!</p>
<p><strong>Conclusion:</strong><br />
Although I find WordPress to be a great blogging software package and very easy to get up and running, some of the custumizations are just difficult to figure out. &nbsp;If you know code it shouldn&#8217;t be an issue, but for those who don&#8217;t it&#8217;s just too difficult. &nbsp;I really hope that in the future WordPress sees the weaknesses of their default widgets and does something to improve their usability. &nbsp;Maybe I&#8217;ll do a little more research on widgets and actually create a useful Meta widget. &nbsp;If that&#8217;s something you would find useful let me know and I&#8217;ll probably take the time and create it for the community!</p>




	<a rel="nofollow" id="email" href="javascript:window.location='http%3A%2F%2Fwww.youshouldlisten.com%2Fwp-content%2Fplugins%2Fsociable%2Fawesmate.php%3Fc%3Dmailto%26t%3Dhttp%253A%252F%252Fwww.youshouldlisten.com%252F2009%252F09%252F12%252Fcustomizing-wordpress-default-meta-widget%252F%26d%3Dmailto%3A%3Fsubject%3DCustomizing%2520WordPress%2520Default%2520Meta%2520Widget%2526body%3DTARGET';" title="E-mail this story to a friend!"><img src="http://www.youshouldlisten.com/wp-content/plugins/sociable/images/email_link.png" title="E-mail this story to a friend!" alt="E-mail this story to a friend!" class="sociable-hovers" /></a>
	<a rel="nofollow" id="print" href="javascript:window.location='http%3A%2F%2Fwww.printfriendly.com%2Fprint%3Furl%3Dhttp%253A%252F%252Fwww.youshouldlisten.com%252F2009%252F09%252F12%252Fcustomizing-wordpress-default-meta-widget%252F%26amp%3Bpartner%3Dsociable';" title="Print this article!"><img src="http://www.youshouldlisten.com/wp-content/plugins/sociable/images/printfriendly.png" title="Print this article!" alt="Print this article!" class="sociable-hovers" /></a>
	<a rel="nofollow" id="pdf" href="javascript:window.location='http%3A%2F%2Fwww.printfriendly.com%2Fprint%3Furl%3Dhttp%253A%252F%252Fwww.youshouldlisten.com%252F2009%252F09%252F12%252Fcustomizing-wordpress-default-meta-widget%252F%26amp%3Bpartner%3Dsociable';" title="Turn this article into a PDF!"><img src="http://www.youshouldlisten.com/wp-content/plugins/sociable/images/pdf.png" title="Turn this article into a PDF!" alt="Turn this article into a PDF!" class="sociable-hovers" /></a>
	<a rel="nofollow" id="digg" href="javascript:window.location='http%3A%2F%2Fdigg.com%2Fsubmit%3Fphase%3D2%26amp%3Burl%3Dhttp%253A%252F%252Fwww.youshouldlisten.com%252F2009%252F09%252F12%252Fcustomizing-wordpress-default-meta-widget%252F%26amp%3Btitle%3DCustomizing%2520WordPress%2520Default%2520Meta%2520Widget%26amp%3Bbodytext%3DThis%2520is%2520my%2520first%2520time%2520using%2520WordPress%25202.8.%2520%2526nbsp%253BI%2520actually%2520upgraded%2520from%2520WordPress%2520version%2520very%2520old.%2520%2526nbsp%253BI%2527m%2520very%2520impressed%2520by%2520the%2520new%2520features.%2520%2526nbsp%253BI%2520really%2520enjoy%2520having%2520the%2520widgets%2520on%2520the%2520sidebar.%2520%2526nbsp%253BIt%2520has%2520made%2520things%2520very%2520easy%2520to%2520customiz';" title="Digg"><img src="http://www.youshouldlisten.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow" id="sphinn" href="javascript:window.location='http%3A%2F%2Fsphinn.com%2Findex.php%3Fc%3Dpost%26m%3Dsubmit%26link%3Dhttp%253A%252F%252Fwww.youshouldlisten.com%252F2009%252F09%252F12%252Fcustomizing-wordpress-default-meta-widget%252F';" title="Sphinn"><img src="http://www.youshouldlisten.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a>
	<a rel="nofollow" id="del.icio.us" href="javascript:window.location='http%3A%2F%2Fdelicious.com%2Fpost%3Furl%3Dhttp%253A%252F%252Fwww.youshouldlisten.com%252F2009%252F09%252F12%252Fcustomizing-wordpress-default-meta-widget%252F%26amp%3Btitle%3DCustomizing%2520WordPress%2520Default%2520Meta%2520Widget%26amp%3Bnotes%3DThis%2520is%2520my%2520first%2520time%2520using%2520WordPress%25202.8.%2520%2526nbsp%253BI%2520actually%2520upgraded%2520from%2520WordPress%2520version%2520very%2520old.%2520%2526nbsp%253BI%2527m%2520very%2520impressed%2520by%2520the%2520new%2520features.%2520%2526nbsp%253BI%2520really%2520enjoy%2520having%2520the%2520widgets%2520on%2520the%2520sidebar.%2520%2526nbsp%253BIt%2520has%2520made%2520things%2520very%2520easy%2520to%2520customiz';" title="del.icio.us"><img src="http://www.youshouldlisten.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" id="facebook" href="javascript:window.location='http%3A%2F%2Fwww.youshouldlisten.com%2Fwp-content%2Fplugins%2Fsociable%2Fawesmate.php%3Fc%3Dfacebook-post%26t%3Dhttp%253A%252F%252Fwww.youshouldlisten.com%252F2009%252F09%252F12%252Fcustomizing-wordpress-default-meta-widget%252F%26d%3Dhttp%3A%2F%2Fwww.facebook.com%2Fshare.php%3Fu%3DTARGET%2526t%3DCustomizing%2520WordPress%2520Default%2520Meta%2520Widget';" title="Facebook"><img src="http://www.youshouldlisten.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow" id="twitter" href="javascript:window.location='http%3A%2F%2Fwww.youshouldlisten.com%2Fwp-content%2Fplugins%2Fsociable%2Fawesmate.php%3Fc%3Dtwitter%26t%3Dhttp%253A%252F%252Fwww.youshouldlisten.com%252F2009%252F09%252F12%252Fcustomizing-wordpress-default-meta-widget%252F%26d%3Dhttp%3A%2F%2Ftwitter.com%2Fhome%3Fstatus%3DCustomizing%2520WordPress%2520Default%2520Meta%2520Widget%2520-%2520TARGET';" title="Twitter"><img src="http://www.youshouldlisten.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow" id="technorati" href="javascript:window.location='http%3A%2F%2Ftechnorati.com%2Ffaves%3Fadd%3Dhttp%253A%252F%252Fwww.youshouldlisten.com%252F2009%252F09%252F12%252Fcustomizing-wordpress-default-meta-widget%252F';" title="Technorati"><img src="http://www.youshouldlisten.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow" id="google" href="javascript:window.location='http%3A%2F%2Fwww.google.com%2Fbookmarks%2Fmark%3Fop%3Dedit%26amp%3Bbkmk%3Dhttp%253A%252F%252Fwww.youshouldlisten.com%252F2009%252F09%252F12%252Fcustomizing-wordpress-default-meta-widget%252F%26amp%3Btitle%3DCustomizing%2520WordPress%2520Default%2520Meta%2520Widget%26amp%3Bannotation%3DThis%2520is%2520my%2520first%2520time%2520using%2520WordPress%25202.8.%2520%2526nbsp%253BI%2520actually%2520upgraded%2520from%2520WordPress%2520version%2520very%2520old.%2520%2526nbsp%253BI%2527m%2520very%2520impressed%2520by%2520the%2520new%2520features.%2520%2526nbsp%253BI%2520really%2520enjoy%2520having%2520the%2520widgets%2520on%2520the%2520sidebar.%2520%2526nbsp%253BIt%2520has%2520made%2520things%2520very%2520easy%2520to%2520customiz';" title="Google Bookmarks"><img src="http://www.youshouldlisten.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow" id="reddit" href="javascript:window.location='http%3A%2F%2Freddit.com%2Fsubmit%3Furl%3Dhttp%253A%252F%252Fwww.youshouldlisten.com%252F2009%252F09%252F12%252Fcustomizing-wordpress-default-meta-widget%252F%26amp%3Btitle%3DCustomizing%2520WordPress%2520Default%2520Meta%2520Widget';" title="Reddit"><img src="http://www.youshouldlisten.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow" id="tumblr" href="javascript:window.location='http%3A%2F%2Fwww.tumblr.com%2Fshare%3Fv%3D3%26amp%3Bu%3Dhttp%253A%252F%252Fwww.youshouldlisten.com%252F2009%252F09%252F12%252Fcustomizing-wordpress-default-meta-widget%252F%26amp%3Bt%3DCustomizing%2520WordPress%2520Default%2520Meta%2520Widget%26amp%3Bs%3DThis%2520is%2520my%2520first%2520time%2520using%2520WordPress%25202.8.%2520%2526nbsp%253BI%2520actually%2520upgraded%2520from%2520WordPress%2520version%2520very%2520old.%2520%2526nbsp%253BI%2527m%2520very%2520impressed%2520by%2520the%2520new%2520features.%2520%2526nbsp%253BI%2520really%2520enjoy%2520having%2520the%2520widgets%2520on%2520the%2520sidebar.%2520%2526nbsp%253BIt%2520has%2520made%2520things%2520very%2520easy%2520to%2520customiz';" title="Tumblr"><img src="http://www.youshouldlisten.com/wp-content/plugins/sociable/images/tumblr.png" title="Tumblr" alt="Tumblr" class="sociable-hovers" /></a>
	<a rel="nofollow" id="friendfeed" href="javascript:window.location='http%3A%2F%2Fwww.friendfeed.com%2Fshare%3Ftitle%3DCustomizing%2520WordPress%2520Default%2520Meta%2520Widget%26amp%3Blink%3Dhttp%253A%252F%252Fwww.youshouldlisten.com%252F2009%252F09%252F12%252Fcustomizing-wordpress-default-meta-widget%252F';" title="FriendFeed"><img src="http://www.youshouldlisten.com/wp-content/plugins/sociable/images/friendfeed.png" title="FriendFeed" alt="FriendFeed" class="sociable-hovers" /></a>
	<a rel="nofollow" id="linkedin" href="javascript:window.location='http%3A%2F%2Fwww.linkedin.com%2FshareArticle%3Fmini%3Dtrue%26amp%3Burl%3Dhttp%253A%252F%252Fwww.youshouldlisten.com%252F2009%252F09%252F12%252Fcustomizing-wordpress-default-meta-widget%252F%26amp%3Btitle%3DCustomizing%2520WordPress%2520Default%2520Meta%2520Widget%26amp%3Bsource%3DYou%2BShould%2BListen%2521%2B%26amp%3Bsummary%3DThis%2520is%2520my%2520first%2520time%2520using%2520WordPress%25202.8.%2520%2526nbsp%253BI%2520actually%2520upgraded%2520from%2520WordPress%2520version%2520very%2520old.%2520%2526nbsp%253BI%2527m%2520very%2520impressed%2520by%2520the%2520new%2520features.%2520%2526nbsp%253BI%2520really%2520enjoy%2520having%2520the%2520widgets%2520on%2520the%2520sidebar.%2520%2526nbsp%253BIt%2520has%2520made%2520things%2520very%2520easy%2520to%2520customiz';" title="LinkedIn"><img src="http://www.youshouldlisten.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a>
	<a rel="nofollow" id="rss" href="javascript:window.location='http%3A%2F%2Ffeeds.feedburner.com%2FYouShouldListen';" title="RSS"><img src="http://www.youshouldlisten.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>
	<a rel="nofollow" id="mixx" href="javascript:window.location='http%3A%2F%2Fwww.mixx.com%2Fsubmit%3Fpage_url%3Dhttp%253A%252F%252Fwww.youshouldlisten.com%252F2009%252F09%252F12%252Fcustomizing-wordpress-default-meta-widget%252F%26amp%3Btitle%3DCustomizing%2520WordPress%2520Default%2520Meta%2520Widget';" title="Mixx"><img src="http://www.youshouldlisten.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.youshouldlisten.com/2009/09/12/customizing-wordpress-default-meta-widget/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>	
	</channel>
</rss>
