Resize Google reCAPTCHA with CSS

April 12, 2019

Google’s reCAPTCHA can easily overflow it’s parent at small screen sizes. Let’s fix that. Since the reCAPTCHA sits inside an iframe, we can’t target its individual elements with CSS. We can limit the iframe’s width, but that simply hides any part of the iframe that doesn’t fit within our new width. The code below reduces […]

Read More

jQuery Code Wrapper for WordPress

March 18, 2019

When WordPress loads jQuery, it doesn’t provide access to the $ function. Since I’m typically wrapping my code in a .ready() function, here’s the code to get access to the $ function at the same time: This code is posted all over the internet, but it always takes me some time to find it each […]

Read More

Linux Command Line: Find Files with Matching String

November 30, 2016

I know this is documented in various places around the web, but I’m tired of hunting it down whenever I need it. Often when working with websites and code, I need to locate any files that contain a particular string. This command searches a folder recursively and prints out the filename of any files that […]

Read More

Displaying Custom Post Types in a Custom Taxonomy Archive

August 12, 2016

The project I was working on today required a custom post type that included a custom taxonomy. Setting this up on the back end was simple. However, when I went to the front end, all the posts in the custom post type were missing from the custom taxonomy archive. Since it took me way too […]

Read More

Migrating WordPress Multisite to a Local Development Environment

June 4, 2016

This post is primarily a reminder to my future self. However, I don’t think I’m alone in this struggle. Migrating WordPress multisite can be quite a challenge, especially if you’re migrating from a live site to a local development environment. If you’re using http://localhost as your local development environment root with individual sites placed in […]

Read More

WordPress Audio: Add a Download Button to mediaelement.js

January 29, 2015

So I got a call this morning asking how to download an audio file that WordPress was presenting with medialement.js. As you might have noticed, since WordPress started providing an audio player there hasn’t been an easy way to allow audio files to be downloaded as well as played. This has bothered me for a […]

Read More

Setting Up Ubuntu/Linux Mint for Web Development

March 4, 2014

Every so often I switch computers or reinstall my OS and end up searching around the web for the exact steps to get everything working again. Today, as I set up my OS again, I figured I might as well document the process. Since Linux Mint is based on Ubuntu, I think that these steps […]

Read More

Creating a Commercial WordPress Theme Review Site in One Week: Day 4

January 7, 2014

This is the fifth in a series of posts documenting the creation of Theme Friendly, a website dedicated to reviewing commercial WordPress themes. On day four, I built the search page. This was easily the most difficult part of the entire process. Let’s start with the screenshot. Day 4 Screenshot If you read my post […]

Read More