Blog

Conditionally loading different fonts in WordPress based on language

When working with a multinational brand it’s a good idea to consider font choice at an identity level to ensure that language support is considered at a branding stage. However, this is not always a possibility or easy to support many languages with a single typeface. I recently worked on a project that needed to adapt an existing WordPress theme to support English and Arabic versions. TranslatePress was used for the translation functionality but I […]

Read more

Creating a ‘credit account’ payment method on WooCommerce

Recently, whilst building an e-commerce website for a client an interesting feature arose which I’d yet had to build on any other WooCommerce website: to allow certain users to pay via credit ‘on account’. It’s worth noting that the process of applying for a credit account would be handled manually due to credit checks needing to be fulfilled etc. This is how I built this feature into a custom theme using a relatively simple process: Step […]

Read more

Advanced customisations to the WordPress WYSIWYG editor

I’ve never really been a fan of content management systems that offer an in-context content editor unless they’re done well on a minimal scale; websites such as Medium do this very well. For most websites with more content and/or with e-commerce capabilities an in-context editor becomes hard to use because they user may get distracted by other parts of the site, lose their place or be bombarded by edit buttons everywhere. I have always preferred content be […]

Read more

Setting a store-wide percentage for PayPal Adaptive Payments on WooCommerce

The WooCommerce PayPal Adaptive Payments plugin is a paid-for WooCommerce extension that allows you to split your PayPal payments between one or more receivers; it supports chained, parallel and simple payments. The extension by default allows you to set these fees on a product-by-product basis but this is a rather laborious and ineffective way of doing things if your store has many products and your fee is always to be the same. Luckily, by using the woocommerce_paypal_ap_payment_args filter […]

Read more