I blog about web development, WordPress / WooCommerce tips...
and other stuff.
Add this code to your functions.php file to add the dimensions to the image object array for svgs. add_filter( 'wp_get_attachment_image_src',...
A quick snipped of code filter parameters into YouTube oEmbed requests. Handy to remove suggested videos, YouTube contols and info....
A quick snipped of code that can be used attach a function to the escape key. Great for adding or...
Fed up of getting the W3 Validator warning "The type attribute is unnecessary..."? Here is a handy bit of code to...
Need a bespoke WooCommerce site with dynamic content for two types of visitor? For example, this is from a recent...
A quick way to manually disable the WordPress emojicons code without needing a plugin. Pop this in your functions.php file:...
Simple bit of jQuery to add an active class to the current navigation item based on the page url. jQuery("nav...
Here is a really simple way to create custom tabs for your WooCommerce builds using the ACF Repeater Field. First,...
Handy bit of code you can use in your custom templates that grabs the all the page or post data by ID:...