Code Snippets

Creating a Custom Post Type in WordPress

WordPress allows us the ability to create Custom Post Types, These are useful for all kinds of things, For example if you ran a Car Dealership and wanted to post details about your cars for sale, Sure you could use an e-commerce platform, But what if you didn’t want them to be purchased online? Catalog […]

Making an Icon Bounce in Pure CSS

If like me, You like subtle animations on your website, You can use a simple CSS Trick to make your animations bounce on hover. Firstly you’re going to want to decide what element you’d like to bounce. In this example I’m going to use Icon Links You’re going to need to either create a new […]

Checking if the WooCommerce cart contains an item.

Sometimes you find yourself needing to check if a customer has an item in the cart to perform certain functions, In this instance we’re going to add a message to the cart. Although there are plugins that can perform this functionality. A much simpler and light-weight solution is to just use a code snippet. All […]