{"id":1471,"date":"2007-10-27T09:05:44","date_gmt":"2007-10-27T13:05:44","guid":{"rendered":"http:\/\/www.allyngibson.net\/?p=1471"},"modified":"2007-10-27T09:05:44","modified_gmt":"2007-10-27T13:05:44","slug":"on-some-new-changes","status":"publish","type":"post","link":"http:\/\/www.allyngibson.com\/?p=1471","title":{"rendered":"On Some New Changes"},"content":{"rendered":"<p>The Stonehenge theme was always a short-term solution.  I knew that WordPress 2.3 was coming.  I knew it was adding tagging to the core.  And I knew that meant changes under the hood to the way WordPress themes worked.<\/p>\n<p>I remember the upgrade to 2.1.  <i>Oh<\/i>, do I remember the upgrade to WordPress 2.1.<\/p>\n<p>So I wanted something close to the default coding &mdash; in other words, something based off Kubrick &mdash; but with a little style and pizzazz, so that the underlying changes to themes would be more apparent.<\/p>\n<p>I needn&#8217;t have worried.  The coding changes were downright minimal.  Integrating tags to the theme was&#8230; <i>nothing<\/i>.  Everything worked.<\/p>\n<p>Though I liked how the Stonehenge theme looked, I knew that it wouldn&#8217;t be around forever.<\/p>\n<p>And so I moved on.  I knew the theme I <i>really<\/i> wanted, and I bided my time before I could make the appropriate changes to that theme.<\/p>\n<p>And so I uploaded it.  Activated it.  And what a damn slow, resource hog it was.<\/p>\n<p>It lasted a day.  It was pretty.  It was stylish.  But it had to go.  And back to Stonehenge we went.<\/p>\n<p>The time came, though, for moving on.  I&#8217;d toyed with the <a href=\"http:\/\/www.briangardner.com\/themes\/vertigo-wordpress-theme.htm\">Vertigo<\/a> theme once before &mdash; it was one I&#8217;d downloaded, installed for five minutes to see how it looked, and then moved on.  I had an issue with the footer.<\/p>\n<p>I rethought Vertigo recently, though, and I discovered a variant &mdash; <a href=\"http:\/\/www.briangardner.com\/themes\/vertigo-blue-wordpress-theme.htm\">Vertigo Blue<\/a>.  More my colors, I thought.  And I tackled the problem with the footer, mainly by deleting the two offending columns (basically, they were too freakin&#8217; huge).<\/p>\n<p>Describing all the file changes would take too long.  Suffice it to say, I created Archives, Tags, and single page templates, and they work well.  I rewrote some of the code for the header to be more in line with my needs.  And I worked up my favorite little thing &mdash; a print stylesheet.<\/p>\n<p>In terms of server resources, Vertigo looks to be <i>extremely<\/i> lightweight.  And it&#8217;s snazzy.  I think it&#8217;s going to hang around for a while. \ud83d\ude42<\/p>\n<p><b>ETA (6:45 pm)<\/b>:  I discovered that on old posts, ones where the comments have been turned off (which happens automatically at three months), the sidebars were dropping to the bottom of the page.<\/p>\n<p>That behavior wasn&#8217;t right!<\/p>\n<p>A look at the HTML generated by WordPress for a single post page gave me an idea of what was happening &mdash; there was a missing &lt;\/DIV&gt; tag.  A &lt;DIV&gt; tag opened the the comments block, but then there was no corresponding &lt;\/DIV&gt; tag to close the block, if the comments were closed.<\/p>\n<p>I experimented with two things.<\/p>\n<p>One. I moved the &lt;\/DIV&gt; tag to outside of an If block.  No, that didn&#8217;t work.<\/p>\n<p>Two.  I created an If block that checked if the comments were closed.  If true, a &lt;\/DIV&gt; tag was generated.<\/p>\n<p>One didn&#8217;t work.  Hence the need for number two.  Number two seems definitively to work.<\/p>\n<p>:bond:<\/p>\n<p><b>ETA (7:00 pm)<\/b>:  No, it was more specific than that.  If comments were closed and there were no comments on the post to begin with, all was okay.  Adding the If block nerfed things on those posts.  Fortunately, that was a very simple fix, and now all really <i>is<\/i> good. \ud83d\ude09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Stonehenge theme was always a short-term solution. I knew that WordPress 2.3 was coming. I knew it was adding tagging to the core. And I knew that meant changes under the hood to the way WordPress themes worked. I remember the upgrade to 2.1. Oh, do I remember the upgrade to WordPress 2.1. So<a class=\"more-link\" href=\"http:\/\/www.allyngibson.com\/?p=1471\">Continue reading <span class=\"screen-reader-text\">&#8220;On Some New Changes&#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":[351,4096],"class_list":["post-1471","post","type-post","status-publish","format-standard","hentry","category-wordpress","tag-meta","tag-wordpress","entry"],"_links":{"self":[{"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=\/wp\/v2\/posts\/1471","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=1471"}],"version-history":[{"count":0,"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=\/wp\/v2\/posts\/1471\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1471"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1471"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1471"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}