Convert WooCommerce variation dropdowns into radio buttons

I had an eCommerce project where the client wanted to display options for their products as selectable radio buttons rather than the default select dropdowns. To achieve this, we need to write two functions: 1 will grab the selected options for the product, and for each variation available, write them to a radio button input … Continued

Redirect WordPress user if not logged in

Quite often I have requirements to redirect users if they are not currently logged in to a site. This could be for numerous reasons, but a popular one would be to redirect all visitors to a coming soon page while allowing admins to login in and view the site. This is accomplished by adding the … Continued

Improve security by preventing author lookup

By default, WordPress allows a URL query to lookup system authors. This is done by simply entering the following after the site URL: ?author=1 From a WordPress perspective, the system will see the ‘author’ query in the URL and then try to match a username with that ID on the system, just like the system … Continued

Custom styles for Contact Form 7 Checkboxes

While it’s quite commons to be sent over designs for website bespoke builds, it’s quite common for forms to have custom styles to help integrate into the branding.  For text boxes, selects, textareas, etc this is quite standard, but checkbox fields aren’t so easy to style as the design is native to different browsers. This … Continued

Disable Emoji Support in WordPress

Use the function below to strip out and disable the emoji support in WordPress.  Emoji’s are enabled by default and add unnecessary styles and scripts in the header of the site, regardless of theme.   Adding the below to your themes functions.php or in a standalone plugin (to override regardless of theme) will do the job: … Continued

Add code to the WordPress Head, Body and Footer without a plugin

With tracking codes and pixels able to help you track conversions and the successes of your marketing efforts, these will need to be added to each page of your site to track user journey and behaviours. While there are plugins to achieve being able to do this, I always prefer to build this into my … Continued

Add a Products Per Page dropdown for WooCommerce

It’s no lie that WooCommerce is an amazing ecommerce tool for WordPress. It’s always my go-to plugin for creating stores of all types and sizes. While the product archive pages have a great layout and sorting ability – one aspect I think every store can benefit from is a ‘show x products per page’ ability … Continued

Add WooCommerce attributes Into Nav Menus

While setting up an online store for a client, we needed to list product attributes in the menu. To take advantage of showing the current page feature of the menus (to show current page as highlighted), I didn’t want to have to manually add custom links for each attribute. The client had 150+ attributes so … Continued

I’m now a Certified WordPress Expert at Codeable

While I’ve been working as a web designer and developer for nearly 10 years now, 5 of those have been as a freelancer and consultant specialising in WordPress development and bespoke design. Honestly, I don’t think I could ever go back to employment. Recently, I applied to become a certified expert at Codeable, and today … Continued