Add this to the top of your JS file to allow console logging for any sort of console message. /*eslint no-console: [“error”, { allow: [“warn”, “error”, “log”] }] */
This is a quick “how to” guide on keeping Trellis updated. As you guys may have noticed, I love Roots and their WordPress workflow and environment. It’s always important to…
In this post, I show how to create a custom API endpoint for the WordPress REST API V2. With this custom endpoint, you’ll be able to retrieve any post/page regardless…
Here are several WordPress tips and tricks for when you are developing your own custom plugins. All of these make for a pretty good user experience. This page will be…
This is a super valuable method of passing data to our JavaScript from PHP within WordPress. Prior to this, I was using PHP to create data attributes to pass data….
This snippet shows how to use the scrolling of one container (which isn’t the window or document) to perform some sort of action. This is useful for web apps that…
In this blog post I show how to imitate a long press/ taphold on the desktop. There’s not really any use cases for this that I can think of in…
This snippet is for deferring running of any jQuery code until jQuery is loaded onto the page. This function is useful if you need to call your jQuery somewhere on…
The below snippet shows how to load Google Fonts asynchronously. The main benefit of loading fonts asynchronously is that it speeds up the site extensively. (function ($, window, undefined) {…
This is a starter kit for creating a WordPress child theme. How many times have you begun to create a child theme and don’t remember what’s required? Is it just…