Code

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 ajax selection of elements in a long list. It’s wonderful functionality allows for the ability to live search the list. 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…

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

White screen with WP Rocket and non-writable .htaccess

We’ve been messing around with the WP Rocket caching plugin lately and managed to stumble upon two weird issues that were seemingly unrelated: Firstly when enabling WP Rocket with just Apache processing and no nginx, it was seemingly unable to write to the .htaccess file (despite having FastCGI access enabled for PHP and definitely having…

Read More