Code
Syncing sliders with number or dropdown fields with Formidable Forms
My client wanted a car loan calculator that could look good and be functional on both mobile and desktop devices. Originally the design called for sliders for the various parts of the car loan options (amount, down payment, and term), but how many website sliders have you used on a mobile device without being frustrated?…
Read MoreAdding a “Province” Dropdown to an Address field with Formidable Forms
Working with a client on a site which only targeted the Canadian market, I was asked to add province drop-downs to the address field in a form we were building. Canadian addresses aren’t typically supported in as friendly a fashion as American addresses in form tools. American addresses often have a state drop-down by default,…
Read MoreFormidableForms Javascript / JQuery Extensions & Hacks
I’ve been working on a client’s site which has some specialized form needs, and have been using Formidable Forms to achieve the goals required. Formidable Forms is an incredible piece of software, probably the most advanced Forms tool I’ve used with WordPress, but there’s some additional functionality I needed. Fortunately, Javascript is here to help!…
Read MoreHow to use wp-cli with Plesk hosting
If you use WordPress to power your website and have a bit of technical knowledge (particularly of Linux shell), then taking advantage of the command line interface tool, wp-cli, might be of interest to you! WP-CLI is a command line method of working with WordPress. Rather than triggering actions by logging in to the WordPress…
Read MoreHow to avoid timeouts when importing a WordPress export XML file
WordPress provides a great mechanism for exporting and importing data simply by using Tools > Export or Import. However when used on large datasets, as well as media files that take time to import, you’re bound to run into timeout issues. Obtaining an XML export from the source If you’re exporting from another self-hosted WordPress…
Read MoreWordPress Critical Error or White Screen of Death: How to Fix it
If, when attempting to access any given page on your website, you get a blank white screen, you’re in the right place! This indicates that there’s an error with the code that runs your site or (more likely) parts of your site. It could be due to any number of things, but the most common…
Read MoreAdding a fly-in side menu to the BeaverBuilder theme
A few months ago we were provided a design spec for a client site that required a button which, when clicked, would open a ‘fly-in’ menu appearing from the side — in this case the right side of the screen. This guide will show you how to add such a menu to the BeaverBuilder theme,…
Read MoreAdding select2 to WP Forms
Select2 is a great jQuery library that allows for dynamic and live-searchable selection of elements in a long drop down menu. This guide will show you how to easily add support for Select2 to WP Forms. Note that this refers specifically to the WP Forms plugin, and not general forms for WordPress. Begin by adding…
Read MoreOverlapping images when using a content grid?
If you’re seeing overlapping images, or odd grid display issues when using a content grid plugin, look for a plugin that enables lazyload of images and disable it on the page. For example, we use WP Rocket on most of our sites, and while it’s a fantastic caching plugin, occasionally you can run into the…
Read MoreConfiguring PowerDNS with SolusVM on CentOS 7
The SolusVM documentation has detailed instructions on configuring PowerDNS to work with SolusVM for rDNS configurations, however their instructions only work with CentOS 5 and 6. This guide shows you how to do it on CentOS 7. Note that we’ve stuck with very similar steps to the SolusVM docs, with adjustments where necessary for remotely…
Read MoreEnabling custom 403 error docs with nginx in Plesk
Please note that in order to complete these steps you must have admin access to Plesk. While you would think that enabling “Custom Error Docs” under hosting settings in Plesk, then editing the appropriate document under the /error_docs/ folder in your vhost root would do the trick, unfortunately that’s not the case. Those error documents…
Read MoreAfter Magento upgrade to 1.9.3 your pricing options no longer update
You’re using a pricing options plugin that updates prices dynamically on the product page and cart, yet after the upgrade of Magento it no longer updates prices automatically. In our case it was the Simple Configurable Products Extension. When trying to change the product option from say 2oz to 16oz (where we expected the price to…
Read MoreUpgrade to Magento 1.9.x and find your custom registration forms not working?
We’ve come across this a couple of times recently wherein an upgrade to Magento results in registration forms not working as they should be. The symptoms this time around were as follows: Visitor fills out registration form and clicks submit Visitor is brought back to the registration form as if nothing has happened And nothing has happened…
Read MoreHigh MySQL CPU Usage due to select query on wp_icl_string_pages
A few days ago one of our client’s websites was causing high MySQL processor usage. To narrow down the particular site and table causing the problem we ran mysqladmin processlist and it came back with the particular DB causing the high usage and the table: wp_icl_string_pages This is a table that’s part of the WordPress plugin WPML…
Read MoreHave Plesk and PHP sessions time out earlier than expected?
I just went through a two week long troubleshooting process to try and find the cause of sessions timing out earlier than expected. My PHP session config is as follows, and should definitely be the first place you look for an issue like this: session.cookie_lifetime 0 session.cookie_path / session.entropy_length 32 session.gc_divisor 1000 session.gc_maxlifetime 35000 session.gc_probability…
Read MoreUsing WP Approve User Plugin with WooCommerce
As the WP Approve User plugin appears to not have been maintained for 3 years, I’ve written a new guide to integrate WooComm with the New User Approve plugin instead, which is somewhat better maintained. WooCommerce is the newest and arguably the best E-Commerce solution available for WordPress. If you aren’t considering using it for…
Read More