While working on my Gutenberg Development Course, one of the hardest things I found to research was how to add block templates to your WordPress theme or plugin. Block templates are a way to have certain blocks show up by default for a new post, page or custom post type. You can also "lock" the template to … Continue reading How to Add Block Templates to Your WordPress Theme or Plugin
One of the cool things I picked up while working on my Gutenberg Development Course was how to set a default color palette for all blocks inside your theme. Interestingly, as far as I can tell, defining custom color schemes is something only a theme should do and this cannot be set from within a custom block. Block Color … Continue reading How to Add a Custom “Color Palette” to Your WordPress Theme
I'm super excited to head out to Austin on April 6-8 this year for my 2nd WooConf. This year I will be doing a workshop based on a WooCommerce Theme Development Course I did at Treehouse. Thanks to the folks at WooCommerce, I have an unlimited coupon code "WOOCONFZAC" for $100 off for anyone who wants to attend the conference … Continue reading $100 Off My WooCommerce Development Workshop at WooConf 2016
Big shout out to Otto for his article on Child Themes. I was recently trying to overwrite parent theme functions and came across this article. Scroll down a bit to Overriding Functions to see how it's done.
I have been working on a project that needs to occasionally send off emails. If you need to do so, here's how with wp_mail(): add_filter('wp_mail_content_type',create_function('', 'return "text/html"; ')); wp_mail('firstname.lastname@example.org', 'Subject', 'Message'); Thanks to WordPress Cheat Sheets for the code!
Today I had the opportunity to speak at WordCamp Austin 2014 on "The Ins and Outs of the WordPress Template Hierarchy." Here are the slides for the talk: Google Presentation Link Here is the example template I used: Template Hierarchy Theme Thanks to everyone who attended!