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

Rename Completed order status in WooCommerce

I had a task from a client to rename the default WooCommerce order status from the original to a custom name. The client wanted to rename ‘Completed’ status in WooCommerce, to a new status ‘Dispatched’, as once the order has been sent out, they wanted it a little clearer that it was sent, rather than … Continued

Remove P tags from Contact Form 7 forms

I love Contact Form 7 and use it on 99% of my client and my own sites. It’s simple, lightweight and does a perfect job for mail. Depending on the form you use, you sometimes need to remove the <p> and <br> tags that appear in the form, which are auto-generated by the plugin. While … Continued

Add Bootstrap 4 Navwalker to Roots Sage 9

I had some trouble getting the Bootstrap 4 Navwalker into a new Sage Roots 9x theme. I tried the instructions seen on the navwalker page but kept getting errors and whitescreens. Eventually, here’s what I did to get it working: 1. Download the Bootstrap 4 Navwalker file and add it to the theme: https://github.com/MWDelaney/sage-bootstrap4-navwalker Be … Continued

Prevent blurry Woocommerce gallery images after 3.3 update

Woocommerce has updated a few times since, but I ran into a confusion when trying to understand how a clients product images were looking blurry as thumbnails on the product page. The Settings -> Media were set to 300×300 The Appearance -> Customize -> Woocommerce -> Product images were set to 300×300 The themes functions … Continued

Add Prefix to URL of Custom Post Type

While you can use a plugin to accomplish this, I always prefer to code this manually without the need for a plugin. To explain what we’re trying to achieve here, usually, creating a CPT (Custom Post Type) just adds this onto the site domain or where WP is installed. So normally, the URL would look … Continued

Add Facebook Comments instead of WordPress comments

With pretty much the entire population now having a Facebook profile, it can be advantageous to use Facebook tools wherever possible to encourage interaction to those who use Facebook regularly.  While there are pros and cons to using such tools, Facebook comments can be a good introduction to the benefits. The way this works, is … Continued

Calculate age from datepicker field in ACF

I have been building a member-based website recently for a client and needed to display the age on the profile page. I was using Advanced Custom Fields to build the profiles and used the datepicker field to set the date. To calculate this, use the snippet below to achieve what you need.   Note, I … Continued