Remove Billing & Shipping Address In Woocommerce Checkout

Depending on the type of products you are selling via a Woocommerce store, sometimes you don’t need the billing and shipping address details on the Woocommerce checkout page. Adding this little snippet to your functions.php file, you can deregister them from loading easily:

Add additional class to WordPress sub-menu item

I needed to target a particular parent menu and add an additional class to the sub-menu ul element. As WordPress builds the menu, you won’t find it in any theme files. Also, I didn’t want to add this globally as the site I was working on was responsive and I shared the same class on … Continued

Full-Width Backgrounds Using CSS Cover

More and more, I see websites with large image backgrounds that completely fill the screen size. I really like these and here’s how to achieve it simply using CSS: That’s it! Obviously you need to change the Div name and background image/path to suit but you’re good to go.

Make Newsletter checked by default in Magento

So when shopping online, you may notice that when you purchase items or register an account, most of the time you will have an option to sign up to their mailing list. By default, these are normally set to subscribe by default. Magento for some reason, won’t have this set to subscribe users by default, … Continued

Show content in specific category in Magento

Here’s a little snippet which allows you to enter specific content based on store category. This is handy if you want to show something on a page which belongs to just a specific category only. Likewise you can show either content A if on category and if not, show content on all other categories:

Check WordPress Database Queries

Here’s a little snippet which I sometimes use in my footer during development. It basically checks how many db queries are made when the page loads and how long those queries took to retrieve and display. Very handy if you are performance-oriented and need to check performance of 3rd-party plugins. Once added, refresh the page … Continued

Remove WordPress generator from head source

I always recommend removing the WordPress generator from the source of your head. WordPress by default will include the current version of WordPress in the header. While this can be useful for knowing what WP version you are running compared to the current version available from WordPress.org, it can also give hackers and bots an … Continued

Remove Default WordPress Widgets

Depending on the type of website you run, sometimes the default widgets are useless to your purpose so rather than have them load everytime you access the widgets page, you can simply add this to your functions.php file. Obviously you can remove any from this list to keep them.