Reset Permissions to WordPress Site for Files and Directories
If your permissions are incorrect for files and folders in a webroot domain of a WordPress site more than likely you’ll get a server 500 error. Here is how to fix them by resetting the permissions via the command line, especially using the correct defaults for a cPanel domain or other web server for files…
Read MoreAdd a required checkbox field in WooCommerce checkout page
Here is how you can add a required checkbox field in the WooCommerce checkout page that forces a user to checkbox the request before they can proceed to payment, similar to the terms and condition checkbox. WooCommerce Form Field Add the code in your functions.php – the example uses the a new checkbox field named…
Read MoreA look at various types of CSS selectors and differences between them.
CSS styling can get very specific and you can target less classes and IDs in the HTML markup, and instead target cascading HTML elements – here we take a look at the various CSS Selectors, and give some simple examples of how the selector is written and what it targets. Descendant Selector The descendant selector…
Read MoreInstall Git on macOS Big Sur and earlier with Homebrew or Packaged File
You can install Git on macOS Big Sur, Catalina, Mojave, Sierra, or an older Mac OSX version by a couple of options, one is to use Homebrew to install Git by installing Homebrew first and then issuing: brew install git You can also download install a easy to install package file getting the latest git…
Read MoreRemotely connect to Amazon S3 Bucket from the macOS command line
Connecting your macOS to AmazonS3 storage buckets. This process requires a couple of Unix tools installed, s3cmd and gpg (optional), s3cmd is the command line tool used to connect to Amazon S3 and gpg is an optional secure tool allowing data transfer to be encrypted over HTTPS between you and Amazon. This guide uses Homebrew…
Read MoreSet up Virtual Hosts on macOS Big Sur 11 in Apache
Setting up Virtual Hosts in Apache on on macOS Big Sur is straight forward after you have your local Web Development environment up and running – get your web development up and running first including Apache, PHP and MySQL on macOS following this macOS Big Sur Apache/PHP/MySQL guide here if required. This guide will also…
Read MoreCreate an FAQ Page with Show and Hide Questions and Answers using jQuery
This guide shows how to create a basic expandanle/contractable FAQ page using jQuery, html and CSS. Just click the steps below to see the code or refer to the whole code snippet at the end. The CSS supplied is very basic to get the page started. What jQuery do I need? Include the latest jQuery…
Read MoreSet up Swift Performance Cache with Optimus Prime in Local Mode
Optimus Prime is a cache warmer to load web pages faster on initial load by querying all pages on a websites sitemap via the sitemap URL, it works in harmony with a cache plugin preloading tool. Optimus Prime also has a local mode in which it checks the local cache folder for cached relative URLs…
Read MoreInstalling & Configuring Apache on macOS using Homebrew and use Sites folder
Eventhough Apache ships with macOS, a better maintained version would be coming from Homebrew, also Apple is making noises about not supporting legacy software like PHP so in the future this may be more of a compulsory option. macOS use to ship with both MySQL & PHP, but now since macOS Monterey, PHP has also…
Read MoreInstalling MariaDB Database Server on macOS
MariaDB is an alternative to MySQL database which is more performant with a full open license, you can install it easily on macOS via Homebrew. The first step is to install Homebrew on your computer and possibly to remove any older MySQL database server versions. Once Homebrew is installed, on the command line: brew install…
Read More