For those who don’t know, Elementor is an amazing page builder for WordPress. Super fast with some really nifty features. Check it out here. Today I’ll run through how you can add your own custom elements into the sidebar. We’ll do a basic one that outputs some text along with some recent post titles. This is what […]
Category: Web Development
Debugging slow WordPress Theme demos with NewRelic
A few of our WordPress theme demos started to run slowly. Time to fire up newrelic to find out the problem. It quickly stood out that WordPress SQL queries are chewing up most of the time: What did I find in these demo database tables? 18000 WooCommerce “wc_session” entries. All of these wc_session entries had “autoload” set to “no”. […]
Blocking WordPress xmlrpc.php requests globally on Plesk
Create a new file called: /etc/httpd/conf.d/xmlrpc.conf with this content in it: <Files xmlrpc.php> order deny,allow deny from all </Files> Then restart the web server. Now your host will not have to deal with the many automated xmlrpc exploit attempts it receives.
Upgrading from mysql_connect() to mysqli_connect()
It’s pretty smooth to upgrade from the old mysql to the new mysqli functions in PHP. Most of them are the same, and documented well on the php.net website. However if you’re clients have configured database server names back in mysql_connect() days then they may have added the port number or socket to the mysql […]
Animated GIF generation / streaming with PHP
Here’s an example of animated GIF generation using PHP. In this particular case I’m sending the first frame to the browser really quickly, so the browser can render the size of the image correctly, then while the browser waits for more data I do some processing (which can take 10 seconds) and send the rest of the […]
Creating a WordPress theme installation wizard / theme onboarding
When the popular WooCommerce plugin is first installed, the end user is presented with a lovely onboarding wizard helping with initial setup and showing links to further resources. I have adapted this to a WordPress theme, here’s the video showing the installation wizard after theme activation: https://www.youtube.com/watch?v=vMey1BrKP_A This wizard will help with the following items: Default plugin installation […]
Visual Composer Plugin updates in 3rd party themes
( removed due to https://forums.envato.com/t/howto-update-visual-composer-in-stock-plugin-from-3rd-party-themes/6918/16?u=dtbaker )
The “Media Sync” WordPress plugin
Hey everyone, I’m about to launch the “Media Sync” WordPress plugin. Details, demo and some screenshots are over on the project page here: http://dtbaker.net/projects/mediasync/ Check it out!
Support Hub has just gone beta
I’ve just launched a Beta version of Support Hub. Details about this project are over on its dedicated website here: http://supporthub.co