Day 2/80 of the programming challenge: April 25, 2018. I tried out wptest.io to add some dummy content to the test site for my mom’s cake business, which results in a bunch of random stuff getting added to the site. Cool.
A Shout-Out To DesktopServer
I’m using DesktopServer to build out this cake project. I personally love DesktopServer. I used some alternatives for the while everyone was pumped about them, and while they were good, I could never get my local setup to work reliably. As a WordPress expert with little knowledge of WordPress, I needed a reliable startup and consistent experience more than I needed bells and whistles. DesktopServer’s recent update to PHP7 meant that I renewed my license to get the release candidate, and so far, so good. Great job, ServerPress team! Plus, who wouldn’t feel loved with a DM like that?
Following Along Zac Gordon’s Course
OK, so I continued the course. Today we went through the main files of a theme.
I learned all about the header. I’ve seen this before, when I paint-by-the-numbers fixed a bug in Caldera Forms. That was easy. Zac also provides some starter CSS for you to throw in there so that your theme doesn’t look like MySpace as you work, but instead, it just looks like a daycare. This is fine.
My familiarity with functions.php is that I’ve spent the last 3 years of my life around WordPress developers laughing at the idea of adding functions to functions.php from the Editor, especially in the context of making Caldera Forms do something unusual – and then doing it anyway. At least now I have more context as to why that is and why I’m supposed to laugh at that joke. I set up my functions.php file with some theme support functions (OK, all of them), enqueued my CSS file and and made my menu appear. Due to my wptest.io adventure, I got the screenshot at the top of this post.
I know what this is! We learned about index.php when I took a PHP programming course in college (which, by the way, means I’ve had more normal PHP education than Caldera Forms lead developer Josh Pollock has ever had, so that tells you something about formal technology educations). index.php makes your homepage. Yes! I know things!
I copied half of what I had in index.php, and then I put it in another file.
Yo, we just paid a contractor several thousand dollars to do this copy & paste job for us at Caldera Forms. I see why people want to learn this stuff. Hm, everything is making more sense.
Look at me, I’m a theme developer!