Posts relating to
Dev Tricks

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 create a Live Template in PHPStorm and WebStorm

Use Live Templates to create custom code snippets that you can quickly insert into your code by typing a custom abbreviation. This is extremely handy for commonly used code blocks, such as the echo statement in php or inserting a php block into html. In this example I’ll demonstrate how to create a php block […]

Cross-browser support for hiding scrollbars, including FireFox

Cross-browser support for scrollbar styling and visibility is a challenge. It’s as simple as that. This article provides a solution that addresses the issue of hiding the scrollbars, using scrollbar-width, ::-webkit-scrollbar and -ms-overflow-style. What are Scrollbars? Scrollbars are bars that appear down the right-hand side and across the bottom of the browser (or an element […]