While working on another post, I had some very large tables and I wanted to use Bootstrap Responsive Tables by adding the .table-responsive class but only in the situation where the table is too wide. This is the code I used.
In one of the slack channels I follow, the question came up on how to set WordPress posts older than a certain date to “draft” status using with WP CLI. I was surprised by how difficult I found this task and wanted to document my solution.
You can tell composer to install dependencies as if you’re using a specific version of PHP. This can be helpful if you’re running composer outside of your virtual machine (and your virtual machine has the correct PHP version but your host machine does not).
Recently I was working on a site using Advanced Custom Fields (ACF) and the field input boxes had stopped working. In the browser console, I saw the error “ACF Uncaught TypeError: Cannot read property ‘id’ of undefined”.
The editorconfig project allows you to standardize general coding standards on a project.
I was working on a project where I needed to follow the PHP PSR-2 standard. This is the .editorconfig file I used.
When trying to add my the dkim DNS TXT record for my domain (to authenticate outgoing emails) in Amazon’s Route 53, I received the error message: “CharacterStringTooLong (Value is too long)”. This is how I fixed it.
I was working on one Git branch and I wanted a file from another branch. Using git checkout, we can do this.
How to get your Genesis Child Theme to load style.css with a cache busting ver URL parameter based on the version defined in the header of style.css.
On a project I needed to redirect a URL based on the presence or absence of a URL parameter. This is the htaccess rule I added.