Posted on , Frontend

Proper WordPress menus with Bootstrap 4

Bootstrap 4 has come a long way, but it doesn't fit inside of WordPress all that well.

One common struggle with WordPress is the integration of menus with different front-end frameworks like Bootstrap. Making them work out of the box is impossible and requires some goofing around. In this article, I will show you how to make some simple adjustments to your menu that will allow you to easily style them with…

Posted on , Development

Handle, The Child theme for Axe

Every Axeneeds a Handle

I created Axe (Which you can find here) to aid in my day to day workflow with WordPress, and once I had built enough sites using it. Refining the setup as I went, I was ready to make a child theme. Naturally, every Axe needs a Handle. One notable difference in flexibility is the use of…

Posted on , Development

Make a custom Composer Package.

First, what is Composer and what is a Package? Composer is a dependency manager for PHP. Those Dependencies are what we call Packages that don’t have to be but are usually stored on Packagist. Making a private Composer Package is really simple, but the first thing that you need to make a new repo for…

Posted on , Development

Enabling Memcached in MAMP4

Make it Speedy!

I do all of my Laravel and WordPress locally using MAMP. I like to keep my development process as simple as possible and MAMP lets me do just that. But sometimes you need just a little bit more than what comes out of the box. Caching is an important part of that development cycle and…

Posted on , Development

Simple Cache buster for WordPress

Bust it by Design.

As with the Simple Cachebuster for Laravel I found myself needing a way to invalidate a WordPress sites assets. So as I did before, I opted to add a task to my gulpfile.js that will generate a file in the root of the site for me. /wp-cache-buster.php that simply contains a timestamp. The difference with…

Posted on , Development

Local workflow for private Composer packages

A simple symlink between the composer package and your project allows you to keep your core code all in one place.

I work on two rather large projects that follow two specific life cycles. I want to show you how easy it is to use and setup private Composer packages for use in Laravel. This does not need to be a private package and will work just the same with a public package that you might…

Posted on , Development

Axe WordPress Starter Theme

Cut through the BS and get straight to work!

Axe is a simple bare bone WordPress starter theme structure. It’s a theme meant to be a starting point to get you set up and running as fast as possible. My workflow might not be very orthodox but I typically review the design, Setup my Custom post types using Custom Post Type UI and setup…

Posted on , Development

Using a private Composer package with Laravel and Docker.

Developing packages for use with laravel is reasonably straightforward. But we don’t all make the code for public consumption on Packagist. Adding a custom repository to your composer.json file will allow us to pull code straight from your Github account rather than Packagist. Now you should be able to add your package under require “adampatterson/app-core”:…

Posted on , Design

Centering columns in Bootstrap 3

Previously I had talked about centering columns in Bootsteap 2. But how do we go about doing the same with Bootstrap 3? This approach is actually a lot cleaner and intended only for instances where offsets won’t work. Sometimes you need to center a column count that does not divide evenly by 12. You are…

Posted on , Development

Problems connecting your WordPress site to Jetpack.

XML-RPC server accepts POST requests only

After setting up a fresh install of WordPress on my new Digital Ocean box with PHP 7.0 I had a few issues reconnecting my Jetpack accounts. I got the error XML-RPC server accepts POST requests only and after doing some research found out it’s caused by a missing PHP extension for XML that handles Dom…

Posted on , Inspiration

The man in the Arena

By Theodore Roosevelt

It is not the critic who counts; not the man who points out how the strong man stumbles, or where the doer of deeds could have done them better. The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood; who strives valiantly; who…

Posted on , Development

Full control over WordPress menus.

Sometimes you just need 100% control over your WordPress menus.

Calling wp_nav_menu() directly has its place, but typically your walker function that might generate a Bootstrap compatible main menu might not be ideal for a footer, location selection, or sidebar link list. Using wp_get_nav_menu_items() will give us access to every part of the menu object. Title, Link, Class name, and window location. Don’t forget to…

Posted on , Development

Simple Cache buster for Laravel

Caching busting with Laravel is super simple. It comes with something called Mix ( or Elixer ) that handles front-end processing. Unfortunately, my front-end requirements have some specific needs that prevent me from taking advantage of Mix. The site uses Docker and is also behind a proxy cache so there wasn’t a simple way that…

Posted on , Development

Working with Less and Chrome’s developer tools

I feel like workflows have gone out of control and become overly complex. I am always looking for ways to simplify my workflow, not just because I don’t need the complexity but because I work on many projects at once and in a team. I will use an IDE for my editor, Sorry sublime you don’t…

Posted on , Development

PHP Event API

A simple Event API with Event chaining and Triggers.

Events I tried a couple of existing plugin solutions most did 95% of what I needed and the other 5% was next to impossible to force. After wasting days I decided I would write my own, what follows is an overview of Tentacle event API. Contact me if you have any questions. Registering an event:…