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.
Add a set of social sharing buttons to your Divi theme, without installing a plugin and using the built in icon set.
Divi’s blog module displays an ugly “No results found” message for empty categories. Find out how to hide this message.
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.
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.
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.
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.
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.
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.
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.