{"id":1723,"date":"2008-03-09T10:35:21","date_gmt":"2008-03-09T15:35:21","guid":{"rendered":"http:\/\/www.allyngibson.net\/?p=1723"},"modified":"2008-03-09T10:35:21","modified_gmt":"2008-03-09T15:35:21","slug":"on-wordpress-tinkering","status":"publish","type":"post","link":"http:\/\/www.allyngibson.com\/?p=1723","title":{"rendered":"On WordPress Tinkering"},"content":{"rendered":"<p>Occasionally I&#8217;m asked why I use WordPress.  And specifically, the self-hosted version.<\/p>\n<p>&#8220;There are other free blogging services &mdash; LiveJournal, WordPress.com, Blogger.  You don&#8217;t even need to pay for hosting.  They do it all for you, for free.&#8221;<\/p>\n<p>Those are good points.  And who knows?  Maybe if I&#8217;d made a different decision nearly six years ago, that&#8217;s the direction I&#8217;d have gone.<\/p>\n<p>Except, that wouldn&#8217;t really have been me.<\/p>\n<p>See, here&#8217;s the thing.  I&#8217;ve mentioned it before, and it bears repeating.<\/p>\n<p>I like to tinker.<\/p>\n<p>With a self-hosted WordPress blog, I can get down into the guts of the code.  I can make it look however I want.  If I see something in one design that I want in a different design, I can do that.  If I want bells and whistles, I can do that.<\/p>\n<p>Something like LiveJournal?  You can&#8217;t tinker to <i>anywhere<\/i> near the same degree.  You&#8217;re working inside someone else&#8217;s framework, and with that comes limitations.  You get to scribble at the margins.  Much more than that?  Not really.<\/p>\n<p>Don&#8217;t underestimate the terribly addictive lure of tinkering. \ud83d\ude09<\/p>\n<p>Take yesterday, for instance.<\/p>\n<p>WordPress 2.3 added tagging capabilities.  And with them came the ability to produce tag clouds.  <a href=\"http:\/\/www.allyngibson.com\/?page_id=863\">This page<\/a>, for instance, is my tag cloud.<\/p>\n<p>But tags don&#8217;t need to be displayed as a cloud.  They can be displayed as a list.<\/p>\n<p>Let&#8217;s suppose, for instance, that you wanted to put a list of top tags in your sidebar, much like a blogroll or a category list.  Only, WordPress makes it a little difficult to format a tag list.<\/p>\n<p>What&#8217;s the problem? you ask.<\/p>\n<p>You can produce a tag list no problem.  But it generally doesn&#8217;t look <i>good<\/i>.  Because the way WordPress generates a tag list it hard codes font sizes right into the tag list.  And even if you set the smallest and largest tag sizes as <i>exactly<\/i> the same, WordPress doesn&#8217;t actually <i>do<\/i> that.  There&#8217;s a division by zero problem.<\/p>\n<p>So, after a few months, and with WordPress 2.5 about to hit the &#8216;net in a few days, I decided I was going to do something about the problem.  Call it an aesthetic thing.<\/p>\n<p>I went into a core WordPress file.  Figured out how to alter the tag cloud routine to do what I needed it to do.  And I did.<\/p>\n<p>All told, it took about forty minutes.<\/p>\n<p>The end result isn&#8217;t anything that anyone would really <i>notice<\/i>.  The tag cloud page looks fine.  And the list of tags in my footer isn&#8217;t noticeably different than what it produced before, except that if you look at the source code for the page, you&#8217;ll see that there&#8217;s no font-size definitions in any of those tag links.<\/p>\n<p>Go me!<\/p>\n<p>That&#8217;s not something I could <i>do<\/i> with something like LiveJournal or a WordPress.com-hosted blog.  I couldn&#8217;t get down into the code, scrounge around until I see a problem, and fiddle with the code until I was well and truly happy.<\/p>\n<p>Tinkering can be fun.  Not, in my case, profitable, but certainly fun. \ud83d\ude42<\/p>\n<p>Finally, I fiddled with my CSS stylesheet.<\/p>\n<p>I&#8217;d discovered that, for some inexplicable reason, that Firefox 3 Beta 3 rendered the fonts <i>very<\/i> small.  This had me curious, and it seems that defining fonts as a percentage rather than a point size can cause issues with FF3b3.  I changed the font-size reference to a point size rather than a percentage size, and now all seems to be good.<\/p>\n<p>Tinkering.  It&#8217;s why I use WordPress.  It&#8217;s why I have a self-hosted blog.  It&#8217;s so I can tinker. \ud83d\ude09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Occasionally I&#8217;m asked why I use WordPress. And specifically, the self-hosted version. &#8220;There are other free blogging services &mdash; LiveJournal, WordPress.com, Blogger. You don&#8217;t even need to pay for hosting. They do it all for you, for free.&#8221; Those are good points. And who knows? Maybe if I&#8217;d made a different decision nearly six years<a class=\"more-link\" href=\"http:\/\/www.allyngibson.com\/?p=1723\">Continue reading <span class=\"screen-reader-text\">&#8220;On WordPress Tinkering&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4095],"tags":[498,351,4096],"class_list":["post-1723","post","type-post","status-publish","format-standard","hentry","category-wordpress","tag-firefox","tag-meta","tag-wordpress","entry"],"_links":{"self":[{"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=\/wp\/v2\/posts\/1723","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1723"}],"version-history":[{"count":0,"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=\/wp\/v2\/posts\/1723\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1723"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1723"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1723"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}