David Carter

All Posts

WordPress Authentication with Gatsby

June 27, 2018

Setting up authentication with Gatsby allows you to pull data from protected routes like WordPress settings and information about your user profile. For example, here’s the new information I get with authentication set up. To get started, you’ll need to install the Basic Auth…

Upload to Firebase Storage with Gatsby and Netlify

May 9, 2018

Create a New Firebase Project The first thing we’ll need to do is create a place to upload files to so head on over to Firebase and create a new project. Once you’ve named and created your project you’ll be redirected to this page. You want to click on Add Firebase to your web…

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…