How to Find & Replace in MySQL

mysql logo resized image

Sometimes, we need to find and replace certain strings or pieces of data in MySQL on the fly, for example if we’ve changed a Top Level domain (TLD) and want to update a bunch of links all in one go. For those times, the following command can be issued: The code from the Gist above …

Read more

How To: Leverage Browser Caching for Images, CSS and JS

Ever checked your website speed using GTmetrix, Pingdom, PageSpeed or Yslow… or any of the other many and various latest and greatest speed checking tools? ***2021 update: take a look at Lighthouse Well, if you have, you might have come across a request to “leverage browser caching…” or similar. What does “Leverage Browser Caching” actually …

Read more

How To Remove Related Products from WooCommerce

The code snippet below will allow you to remove related products from your WooCommerce store, in case you had everything in your store setup just right, and you didn’t want to feature cross sells in your site. Cross sells and upsells Its worth first understanding which related products are being displayed in your site (the …

Read more

Local Time in London – Display in a WordPress website

A long while back, I wrote a short piece about how to make Linux servers set their local time to Europe -> London, which you can find here. Today, I’m going to show you how to post a quick snippet into your WordPress to allow you to display what the local time is anywhere in …

Read more

Remove the Description tab from WooCommerce

Ever wanted to remove the description tab from your WooCommerce website? Maybe you put the short description at the top and its pretty much the same text? Whatever the reason, if you’d like to remove the description tab from WooCommerce, you can do so using the snippet below, which should be added to functions.php, or …

Read more

How to Remove a Tab from WooCommerce

Have you ever wanted to remove or disable a particular tab, or tabs, from your WooCommerce store? The snippet below will allow you to do just that, from your theme’s functions.php file. Remove Tabs from WooCommerce Add the snippet below to your child theme’s functions.php file. Be sure to remove the tabs you wanted (the …

Read more

Silicon Dales on GitHub

Back in 2015, we finally got Silicon Dales onto GitHub. It’s the versioning tool of choice for most of our partners and counterparts, so we hauled our assets from internal tools and SVN over to GitHub. There was no need to swim against the tide forever! Note all of our projects and most of our …

Read more

Add a Padlock (or other) Icon into Checkout Button in WooCommerce

We recently had a request to add a padlock directly into the checkout button in a WooCommerce checkout, so I’m posting a snippet, below, which will allow you to do just that. Please note that several plugins add their own “checkout now” text, which is not the subject of today’s lesson, so you may want …

Read more