David Carter

All Posts

WordPress Hierarchy

April 4, 2018

One of the first things you need to understand as you start working with WordPress is the template heirarchy because you need to know which file to edit when you’re working on a page. For a good visualization, check out WP Hierarchy . Before I get started with some…

Using AJAX in WordPress

February 24, 2018

Getting your theme ready for AJAX The first thing you’ll need to do is enqueue your javascript file. Open up functions.php and add the following if it’s not already there. You can look this up in the codex , but I’ll go through the arguments for wp_register_script() . The…

My First Brew Day

July 4, 2017

There’s a little place in hell for people like those who run mega corporations like AB-InBev. I like my American underdog story so I choose to only drink fully independent craft beer. I’ve been doing this for a few years now so I decided it was time to try this myself. I rounded…

Send Monit Alerts to Slack

June 25, 2017

Installing Monit This is as easy as sudo apt-get install monit . Just a heads-up to ServerPilot users, you’ll have to SSH in to your server as root or another user with root/sudo priviledges. If you do SSH in as root, you can leave off all of the sudo s. Now that Monit is…

Woocommerce Customizations

June 24, 2017

WooCommerce is the go-to solution for e-commerce on the WordPress platform. I just wanted to compile a list of customizations I have made during development. Some are more routine than others. Declare Theme Support Replace the WooCommerce Placeholder Image Change the number of…