Add an additional Body Class to WordPress by using the Post Slug

Add an additional Body Class to WordPress by using the Post Slug

One of the real useful things I’ve come across with WordPress is the body_class() method. This adds several classes to the body element of your HTML. The output looks something like below: Why is this so great? Now you can style your pages very efficiently because you’re able to select from the template you’re using, […]

How to do Ajax form validation with inline error messages – without using a plugin

How to do Ajax form validation with inline error messages – without using a plugin

When in comes to validating forms, there are basically two techniques you can use: 1) Server-side validation and 2) Client-side validation. Server-side validation is when form data is submitted, server analyzes then returns the user back to the form when items are invalid. Client-side on the other hand, is when Javascript analyses the fields before […]

Let’s create a jQuery Plugin that checks user’s age when visiting your site.

Let’s create a jQuery Plugin that checks user’s age when visiting your site.

As I was building my client’s new Vodka site, one of the requirements was a prompt that will ask the viewer for their date of birth. Seems simple enough right? So I started coding. Turns out that it takes a bit of work! There’s form validation, date logic, styling – so I decided to make […]

Create a Testimonials section for your WordPress site – the Right Way!

Create a Testimonials section for your WordPress site – the Right Way!

I was recently given the task of updating the testimonials section of our company WordPress site. Imagine my disappointment to see a static page with a running list of paragraphs and author names. I said to myself, we can do way better. Let’s take a glimpse of what we’re going to be building: We will […]