PHIL KURTH

Email

August 2019

How to bypass Elementor’s maintenance mode using the query string

I recently found myself in a situation where I needed to test the non-logged in user experience while Elementor’s maintenance mode was enabled. The quick and easy solution I came up with was to override the option Elementor uses to enable maintenance mode when the query string contained a parameter of my choosing. Using the […]

August 2019

How to render WordPress menu items without a custom Walker

In recent work where I’ve been using tailwindcss to build my UI, I’ve come up against the challenge of dealing with WordPress’ default menu markup. One possible solution here could be to write a custom walker class but, for something quick and simple, the following code snippet got me where I needed to be with […]

March 2019

Pushing Gist changes back up to Github

So this has kind of caught me a few times and thought I might stick it here as a future note to self. When attempting to push to a Gist using SSH authentication, the remote host needs to be in the format that support SSH. e.g; [email protected]:xxxxxxxxx.git Command to check: git remote v If the […]

March 2019

A collection of handy shell commands

A collection of shell commands I use to get things done in a snap (or close to) This command basically moves all files two directories deep up one level. Handy if a WordPress media library structure has changed and you have a lot of files to reorganise. The -i flag prompts you for confirmation where […]

February 2019

WP Valet Boilerplate: an opinionated base for WordPress dev on Laravel Valet

I’ve been working a lot with Laravel lately and a really nice side effect of doing so has been using the very lean Laravel Valet for local development. It is super lean, super fast, and the more I use it, the less I want to be messing about with virtual machines. What’s my beef with […]

December 2018

Conditional Broadcasting of Laravel Events

In a recent project using the Laravel framework, I’ve been getting familiar with WebSockets and came up against a situation where I needed to broadcast an event only when a certain property on a model had changed. I couldn’t find this documented anywhere but, after quick dig into the \Illuminate\Events\Dispatcher class, I found the event dispatcher actually […]

November 2018

Structured objects in a post-Gutenberg world using ACF

Gutenberg. It’s here. The editor we’ve all been huffing and puffing over is finally gonna land in WordPress core and damage all our livelihoods forever… …or is it? Up until recently, I’d just kinda resigned myself to very basic testing with Gutenberg. I’d really just installed the plugin, created posts, and developed a feel for […]

October 2018

Using em units and media queries for simple UI scaling on responsive websites

When crafting custom-built interfaces, I find it incredibly convenient to be able to scale the entire thing down (in size) for devices below a certain width. On sites that have a lot of pixel-based CSS rules, this can be tricky as it can involve writing quite a lot of additional CSS inside a media query […]