{"id":2154,"date":"2009-01-10T11:26:47","date_gmt":"2009-01-10T16:26:47","guid":{"rendered":"http:\/\/www.allyngibson.net\/?p=2154"},"modified":"2009-01-10T11:26:47","modified_gmt":"2009-01-10T16:26:47","slug":"on-early-morning-coding","status":"publish","type":"post","link":"http:\/\/www.allyngibson.com\/?p=2154","title":{"rendered":"On Early Morning Coding"},"content":{"rendered":"<p>Well, <i>that<\/i> was a frustrating two hours of working with PHP code. :-\/<\/p>\n<p>Our story began <a href=\"http:\/\/www.allyngibson.com\/?p=2147\">last week<\/a>; I changed my blog&#8217;s theme to <a href=\"http:\/\/www.tarskitheme.com\/\">Tarski<\/a>, which I ran with for a while and really liked.  (To be honest, I don&#8217;t even remember why I changed.)<\/p>\n<p>Tarski is <i>not<\/i> easy to work with under the hood, however.  Oh, it&#8217;s easy to restyle things with CSS, but adding pieces and taking pieces away is difficult.<\/p>\n<p>At least, it <i>used<\/i> to be.  There was, in the version I used, a file called constants.php where extra code could be placed, but I could never figure out how to get that to work.  The code wasn&#8217;t <i>quite<\/i> php.<\/p>\n<p>Now it&#8217;s a little different.  There are &#8220;theme hooks&#8221; that a plugin can call.<\/p>\n<p><i>Could I add a copyright notice to my footer?<\/i> I wondered.  I found a sample plugin that changed the footer text, the &#8220;Powered by WordPress and Tarski&#8221; bit at the bottom of the page.  I took that plugin, added the php call for a copyright notice, uploaded, and&#8230;<\/p>\n<p>It worked.  Not <i>quite<\/i> the way I wanted it to work, but that was easily fixed.<\/p>\n<p>Using the same logic, I was able to put my Opera Widgets call in the browser address bar.  (If you&#8217;re not running Opera, you won&#8217;t see anything.  If you are running Opera, you can read my blog through an Opera widget.  I don&#8217;t know why you&#8217;d <i>want<\/i> to, but the option is there.)  <i>Voila!<\/i><\/p>\n<p>That worked, too.<\/p>\n<p>Could I replace the navigation bar with a dropdown menu?  It would make for a better organization of pages.  Again, I looked at a sample plugin.  I looked at a theme that had dropdown menus coded, and borrowed from its code.  The logic?  Remove the Tarski navbar and replace it with this dropdown menu code through the plugin.<\/p>\n<p>I activated it.<\/p>\n<p>I had a <i>giant<\/i> mess on the screen.  It turned out I&#8217;d made a typo in my CSS, and nothing was picking up the CSS formatting correctly.  That was an easy fix; a search-and-replace took care of it right off.<\/p>\n<p>Second try.<\/p>\n<p>It worked.  <i>Sort<\/i> of.<\/p>\n<p>It didn&#8217;t work with Opera at <i>all<\/i>.  At least, not in any useful fashion.  (The menu would drop down, but then it would never go away.  And it looked like <i>crap<\/i>.)  In Firefox it <i>did<\/i> work.  But it wasn&#8217;t formatted properly.<\/p>\n<p>I think my early successes inflated my sense of what I could do.<\/p>\n<p>Oh, I&#8217;ll lick this problem.  I will kick it to the curb and make it cry for its mother.<\/p>\n<p>Though not today.  I have other things to get done today.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Well, that was a frustrating two hours of working with PHP code. :-\/ Our story began last week; I changed my blog&#8217;s theme to Tarski, which I ran with for a while and really liked. (To be honest, I don&#8217;t even remember why I changed.) Tarski is not easy to work with under the hood,<a class=\"more-link\" href=\"http:\/\/www.allyngibson.com\/?p=2154\">Continue reading <span class=\"screen-reader-text\">&#8220;On Early Morning Coding&#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,652,4096],"class_list":["post-2154","post","type-post","status-publish","format-standard","hentry","category-wordpress","tag-meta","tag-tarski","tag-wordpress","entry"],"_links":{"self":[{"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=\/wp\/v2\/posts\/2154","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=2154"}],"version-history":[{"count":0,"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=\/wp\/v2\/posts\/2154\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2154"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2154"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2154"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}