Blog
My web development blog collects postsĀ I’ve made solving problems for my clients. There’s hints, tips and code snippets for all the open source frameworks I work with: WordPress, WooCommerce, OpenCart, Drupal, Magento and more. If you have a web development question, get in touch or post a question in the comments, I’ll try my best to help.
Lightweight social share buttons for Divi theme
Add a set of social sharing buttons to your Divi theme, without installing a plugin and using the built in icon set.
Tags: theme design, wordpress
Divi hide “no results found” message for blog module
Divi’s blog module displays an ugly “No results found” message for empty categories. Find out how to hide this message.
Tags: theme design, wordpress
Gravity Forms count uploaded files programmatically
Gravity Forms offers a very nice multi-file upload function, allowing multiple images to be attached to a form. This snippet counts the number of uploaded files and submits the count as a read-only field on the form.
Tags: gravity forms, hooks, wordpress
Disable Yoast WordPress SEO for certain roles
For some strange reason, Yoast SEO doesn’t set capabilities, so access permissions for SEO functions cannot be limited by role. Here are some workarounds to do that.
WordPress comment tracking in Google Analytics without hacking core
How to track WordPress comments as a Google Analytics goal if your theme uses the WordPress comment_form function. This solution uses jQuery to avoid making changes to core files.
Tags: goal tracking, google analytics, wordpress
Cleaning up Gravity Forms file uploads
Uploaded files attached to Gravity Form submissions can quickly mount up, filling up server space. Find out how to remove expired form entries, including the attached files; and also to remove any temporary files left over from abandoned submissions.
Tags: file upload, gravity forms, woocommerce, wordpress
Customising WooCommerce notification emails with hooks and filters
WooCommerce has many hooks to customise the email notifications sent at various stages of the purchase process, but these are not very well documented. Find out how to use some of these useful filters.
Tags: filters, hooks, notification emails, woocommerce
WordPress Contact Form 7 user registration
You can use Contact Form 7 to create a simple membership system for WordPress. Create a user registration form and use this snippet to automatically create user accounts which can be approved in the admin area.
Tags: contact form, user registration, wordpress
Barclay ePDQ payment gateway for WordPress and WooCommerce 2.1.x
The free Barclays’ ePDQ payment gateway for WooCommerce was never updated to use endpoints for WooCommerce versions 2.1 and greater. Find out how to modify the plugin to use the newer versions.
Tags: barclays epdq, endpoints, payment gateway, woocommerce