CSS Vertical Bar Divider in a Menu

You might have a standard menu in your header that just lists the links next to each other with space between them and you need to add some sort of separator. A common one to use is a vertical bar, also known as a “post”. Adding a vertical bar divider to your website’s menu is […]

6 Ways to Speed Up WordPress in Under 5 Minutes

Speed up WordPress in 2017 with these code snippets The following 6 code snippets are really simple to implement and will take you under 5 minutes to do! The first 5 can just be pasted into your theme’s functions.php file for a quick fix. Number 6 would go into your site’s wp-config.php file, but is […]

Automatically Login after User Registration with Gravity Forms

The default behavior in wordpress after registration is to then require the user to login with the account information that they just created. Unless you are using an email confirmation step, this login requirement is an annoying extra step for the user and isn’t necessary. The ideal behavior is to automatically login to the system […]

Randomize Woocommerce Related Products

Woocommerce has a built-in related products section that pulls product recommendations from the assigned categories and tags for the current product. It works as described, but it has its drawbacks with how it works as well. We are going to look at a couple easy-to-implement code snippets that overcome the main flaws of the default […]

Display Categories in the Woocommerce Product Loop

The eCommerce plugin Woocommerce is pretty standard for WordPress retail websites. Woocommerce by default does not display categories on the product loop (shop page), but I recently encountered an instance where we wanted to display all the categories that each product was in within the normal loop. In this case, we also had removed links […]

Combine WordPress Menus Dynamically on Mobile Devices

Many WordPress themes and designs have a main menu that contains the bulk of navigation links and a secondary menu that contains some other variety of links. With a responsive website we need to figure out what to do with these two WordPress menus when on a mobile device since we don’t want to be […]

Add a Mailchimp Subscriber with PHP

You may want to add a subscriber to a Mailchimp list, but can’t or don’t want to use one of their pre-made code snippets to plug into your site. One popular reason is to avoid the confirmation email that Mailchimp will send. Others may just want to merge subscribe functionality in with a larger form. […]

Passing Contact Form 7 Data to the Thank You Page

UPDATE (12/31/17): Contact Form 7 has deprecated the use of ‘on_sent_ok’ as of the end of 2017. Please see my new guide on the DOM Events Method of Passing Contact Form 7 Data that will cover this exact same topic using the new preferred method. I recently had to use Contact Form 7 for a […]

Change Genesis Footer Text

Whether you are using the default Genesis Framework or a Genesis child theme, you will probably see text in the footer that contains a link back to studiopress or the theme author that you will want to edit. This can easily be done using either action or filter hooks in the functions.php file depending on […]

DigitalOcean Error Establishing a Database Connection Fix

I’ve worked on a lot of sites that were hosted on DigitalOcean at this point so I’ve seen many VPS issues that have had to be resolved. I’ve used Ubuntu 14.04 the most on these setups, so this post will use Ubuntu commands. One issue that can have many different causes is the classic “Error […]