Upload vCard files to WordPress

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

Published
Categorized as Web Tagged

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 CodePen Embed Fallback

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

Published
Categorized as Web Tagged ,

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