Create a local WordPress dev box in minutes with Vagrant and Salt

In this tutorial I’m going to show you how to make a Vagrant box for a WordPress project so you can set up a local development environment quickly and easily. A local dev environment is great for speeding up the development process and improving collaboration with other developers.

For this tutorial you’ll need the template I’ve created on GitHub. I’ll also be using Vagrant with VirtualBox, Salt, Gulp and WordPress.

Making WordPress comments form work with Bootstrap 3

While re-designing my WordPress blog template I came across the challenge of making the WordPress comments form play nicely with Bootstrap 3. Unlike the search form which is easily customized by simply adding a ‘searchform.php’ template file, the comments form is a little more complicated.

When making WordPress templates the comments area is modified by adding the ‘comments.php’ file. This however, is only the layout of the comments. The comments form itself is output by using the function:

'<?php comment_form( $args ); ?>'.

The output of this form can be modified using the arguments documented in the official documentation. However I found this handy article, that gives a brilliant and easy to understand breakdown of how to make the ‘comment_form()’ function output some Bootstrap 3 friendly code.