We use the upload_mimes Hook to add the vcard file formats to our allowed mime types. This can be placed in your custom or child themes functions.php file or in a custom plugin. // Enable vcard upload function enable_vcard_upload( $mime_types=array() ){ $mime_types[’vcf’] = ‘text/vcard’; $mime_types[’vcard’] = ‘text/vcard’; return $mime_types; } add_filter(‘upload_mimes’, ‘enable_vcard_upload’ ); You can…… Continue reading Upload vCard files to WordPress
Category: Web
Death By (Exercise Rep Calculator)
A small javascript calculator for determining the number of reps completed during a “Death By” EMOM workout. https://codepen.io/philhoyt/pen/bGpGLeN
Using Airtable to learn React
The past few weeks I’ve started to learn the React library more seriously with a few practice projects. I learned of Airtable from a CSS-Tricks article a while back which goes into more detail of what Airtable is but the TL;DR might sum it up as a Google Sheets on steroids with API endpoints. In…… Continue reading Using Airtable to learn React
How I am styling Select elements
I’ve complained about styling forms before on this blog. But things have gotten better over the last several years and we are starting to see some browser consistency. I did run into a problem with select elements to find that adding pseudo classes won’t work, which is my usual go to for adding font icons…… Continue reading How I am styling Select elements
Custom Animated Submit Button for Ninja Forms
Ninja Forms is easily one of my favorite WordPress plugins. It’s one of the most design agnostic form building plugins I’ve come across and has saved me time on every project. Every now and then a designer asks for some UI that isn’t easily accommodated by most form markup. I needed to animate a submit…… Continue reading Custom Animated Submit Button for Ninja Forms
Generate Post Title and Slug from Advanced Custom Fields
I often need to create post titles in WordPress based on fields I’ve generated using Advanced Custom Fields. Below is an example that assumes we have a Custom Post Type registered to “staff” and two Custom Fields with the name of “first_name” and “last_name”. Using the “update_value” hook provided by Advanced Custom Fields and “wp_update_post”…… Continue reading Generate Post Title and Slug from Advanced Custom Fields
How WordPress default themes add Google Fonts
I spent some time diving into Twenty Seventeen in preparation to develop for the theme directory. I was curious as to how the developers of very popular theme would enqueue a Google Font. I am no stranger to using a @import tag in the stylesheet, but I assumed there had to be a more sustainable solution. What…… Continue reading How WordPress default themes add Google Fonts
Free Plugins to Enhance your WordPress Experience!
The WordPress UI is one of the best CMS’s on the market and continues to improve with every version. That being said there are a few features that seem to be missing which could make your experience a whole lot better and I am going to show you a few plugins to fill that void!…… Continue reading Free Plugins to Enhance your WordPress Experience!
Big Bold Button
I’ve been on a spree of creating button styles as well as scalable elements using em’s. Combining those ideas I created the below button. I imagine it being a big call to action. http://codepen.io/philhoyt/pen/xOjmBP
Adding a ‘Client’ User Role to WordPress
In an effort to make a better boilerplate my co-worker Jim Floss and I set out to create a new User Role inside our WordPress client sites. This role closely resembles the Editor role and Admin role, but allows us to turn different functionality on a per-client basis if need be, but by default locks…… Continue reading Adding a ‘Client’ User Role to WordPress