BLOG

hints, tips, tricks and news

How to password protect an external drive for Macs

Here are the steps we take to protect an external hard drive: Open Disk Utilities Select the drive to protect Select Erase Rename the drive Provide a secure password and a useful hint Erase and recreate the password protected drive Enjoy protect external assets 1. Open Disk Utilities > 2. Select the drive to protect […]

How to fix vagrant error “tee: /etc/exports: Operation not permitted”

Also, how to fix “nfsd service does not appear to be running” This solution is for Mac users only – thanks CW. Short answer: Open “System Settings” Unlock padlock Select “Full Disk Access” Add “Terminal” (or whatever you use) Close padlock Restart Terminal (if open)

How to add WP’s customizer CSS into the classic editor

Recently, a newly acquired client needed the styling from the Customizer’s custom CSS to show in the classic editor (TinyMCE). In all my years of working with WordPress, this was the first time I’d had this request, so, knowing that you can inject styling into the TinyMCE editor, I set about finding a solution. There […]

How to reveal the footer from under the content, using position sticky

Once upon a time, a challenge like this, where you want to reveal a footer when the end of the content is reached, would have needed position: fixed|absolute and a bit of JavaScript to calculate the dynamic height of the footer, for responsiveness. Thankfully, we now have a much simpler solution, using sticky positioning. With […]

How to fix the PhpStorm error, “The IDE cannot create the directory”, in under a minute

On a couple of occasions, I’ve encountered a very annoying issue where PhpStorm will not open. Instead of opening it throws up the error message, “the IDE cannot create the directory.”, in a modal window. I’m using JetBrains’ Toolbox to manage their IDEs and on the whole it’s a great little app to navigate their […]

How to import and export all WordPress users using WP CLI

Like everything with WordPress, there’s usually a plugin to help, but we don’t need one to import users as WP CLI can do this. Here’s the simple process, starting with exporting the user from an existing WP database. We’ll refer to the source database as source-db and the target database as target-db and I’ll assume […]