Posted on , WordPress

WordPress Loop Helpers

If you have ever used Laravel, you have probably also used Blade. Blade is a simple and powerful template language provided with Laravel. Blade has many wonderful features but one of them, as it relates to WordPress, is how it works with a The Loop. Normally in the WordPress loop you would set a variable…

Posted on , Development

Laravel 7 Custom Email Verification Template

I will be assuming that you have already got Laravel installed, setup and tour authentication is working. Otherwise, why would you be looking into customizing the email templates? 😁 The Laravel documentation for Email Verification will cover the setup by reading the documentation. But it stops just short of actually explaining how to customize the…

Posted on , Development

Laravel 7 Custom Password Rest Email Template

The Laravel documentation mentions that you can customize the Password Rest Template, but doesn’t explain how you would actually do it. That said, I will assume that you already have auth and have published your auth views. That is covered very well in the documentation. As stated in the documentation you will need to over…

Posted on , Development

Easy Google Distance Matrix

What is the Distance Matrix? A Distance Matrix is a service that provides travel distance and information between two points based on the recommended route from Google’s APIs. In the case of Google, you can also specify the mode of transportation such as walking, cycling, transit, and driving. How does Distance Matrix work? Google’s Distance…

Posted on , Development

Simple Geocoding with Googe Maps

What is Geocoding? Geocoding is a process of transforming a description of a location into a pair of coordinates on the earth’s surface. How does Geocoding work? At a very basic level, your address input will be classified as relative, or absolute. An example of relative data would be the house next door, where an…

Posted on , General

How to fix slow BrowserSync

I have been using Webpack with my WordPress development now fo a few years and implemented it using Laravel Mix. You can read more about that here. But more recently I have started using BrowserSync, mostly because I was working on a front end heavy site and was doing a lot more incremental changes to…

Posted on , WordPress

How to connect Google Site Kit to WordPress

What is Site Kit? You might be like me and wondering what Google Site Kit is. Like many Google products, there seem to be so many cool products out there that no one knows about. Site Kit is no exception. Site Kit brings many of the Google advertising and analytics tools inside of WordPress giving…

Posted on , Development

A better WordPress admin title.

At least for me!

At the moment I have 5 posts open to edit. Looking at them, all I see is “Edit Post < Adam Patterson – WordPress“. Sure 5 tabs aren’t that many and not that hard to sort through but I began to wonder why WordPress wouldn’t simply show the post title for pages and posts. Lucky…

Posted on , WordPress

Centering Social Media Blocks with Gutenberg

Gutenberg just needs a little hand.

I can confirm that centering of most media embeds does not work. Left and right alignment do, but it then causes content to wrap around the media in an undesirable ( for me ) way. Here is some SCSS that mostly worked for me. There is some spacing on the right that I haven’t tracked…

Posted on , WordPress

Responsive Video Embeds with Gutenberg

Quick and easy!

I have been spending some time re-working my starter theme Axe to support Gutenberg, and as part of the process has been updating the theme to support Bootstrap 4 as well as a bunch of other cleanup. After testing some dummy content I noticed that out of the box Gutenberg does not support responsive video…

Posted on , General

How to Cache wp-json with CloudFront

I’m not sure if I’m the only one who has tried to Cache WordPress API endpoint wp-json without a plugin, but I sure didn’t find anything useful out there. I have been working with the WordPress API bringing some blog content into a non WordPress site and noticed that like most things with WordPress the…

Posted on , General

My Hacked PlayStation Account, And How I Fixed It

Last year we bought a PS4 Pro, I was excited having never really played a modern console. We picked up a Destiny 2 and a hand full of other games. Destiny 2 quickly became one of my favorites connecting with friends and eventually joining a clan. My 11-year-old son also enjoyed the game. He would…

Posted on , Development

Quickly start using Webpack Monitor with Laravel Mix

Know what you're packing

Webpack is the third build tool that I have used in the last 2-3 years. It’s inevitable that you will come across build tools. For small quick and dirty projects I still use Code Kit, But for those larger and more complex sites, I like to use Laravel Mix. It seemed to offer the most…

Posted on , WordPress

Clean up your WordPress Draft posts!

Where Ideas sometimes happen.

I think I am what I would call an Idea guy. I like to come up with “cool” ideas, some times I will go as far as to write some specs, make some simple sketches… And then totally forget about them. Or if I am lucky I will come back to them months later. This…