Code

FormidableForms Javascript / JQuery Extensions & Hacks

formidable-forms-jquery-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 More

How to use wp-cli with Plesk hosting

plesk-wordpress-cli

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 More

How to avoid timeouts when importing a WordPress export XML file

plesk-wordpress-cli

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 More

Adding 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 More

Adding 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 More

Overlapping 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 More

Configuring 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 More

Enabling 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 More

High 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 More

Have 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 More

Using WP Approve User Plugin with WooCommerce

wc_big_logo2

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