Development

  • Setting Up GitHub main and plugins repos on cPanel

    Categories: , ,

    This tutorial is to guide you how to setup SSH keys, configure them and clone the main/plugin repos for our WordPress sites. Prerequisites Step 1 – Create SSH keypair for the main repo You may enter this process by different means: Note: If you are in Situation B skip to step 2. Login to the…

  • Spoofing IP’s for websites (mac os)

    Categories: ,

    Using /etc/hosts on macOS to Point a Domain to a Staging Server When previewing a website on a migration server before the domain goes live, you can override DNS locally using the /etc/hosts file. Why This Is Needed Some domains resolve to both: If you only override IPv4 like this: Firefox and Safari may still…

  • Changing the Default Git branch in Github

    Categories: ,

    When working with Git, it’s sometimes necessary to change the default branch — especially if you want pull requests to target a branch other than main or master by default. This can also be important when migrating repositories from Bitbucket to GitHub, as GitHub may incorrectly set the default branch (often choosing the first one…

  • Bitbucket to GitHub Repository Migration Guide

    Categories: ,

    This guide explains how to migrate a Git repository from Bitbucket to GitHub using the command line. It preserves all branches, tags, and full commit history. 1) Prerequisites 2) Clone the Bitbucket repository In a local directory (outside of your local environment like Local by Flywheel) you will clone the BitBucket repository. NOTE: this isn’t…

  • Basic Authentication in cPanel

    Categories: ,

    ✅ To Turn ON Basic Authentication for a Directory 🔐 Now, when someone tries to access that directory via browser, they’ll be prompted to enter the credentials you just created. ❌ To Turn OFF Basic Authentication for a Directory 👋 This removes the authentication requirement — users can access the directory freely via browser.

  • Legacy Zeitpress Asset Tooling

    Categories:

    Old versions of zeipress use Zurb Foundation with node and gulp to build assets. These are the versions of node you may need to try in order for the tooling to work: Try 14.15.3 first as it usually fixes any issues running npm install. Use nvm (Node Version Manager) to mange your node versions locally,…

  • Site/Account Migration Between Servers

    Categories: , ,

    Pre-Migration Checklist Step 1: Create Backup on Source Server Step 2: Transfer Backup File Method A – Direct Server Transfer: Method B – Download/Upload via WHM: Step 3: Restore on Destination Server Step 4: DNS Updates Step 5: Post-Migration Verfication

  • Troubleshooting Common WordPress Issues

    Categories: , ,

    Plugin Conflicts Memory Limit Issues

  • Internationalization (i18n) – Blocks

    Categories:

    This guide provides comprehensive instructions for implementing internationalization in WordPress blocks. Table of Contents Overview Internationalization (i18n) is the process of preparing your code to support multiple languages. WordPress provides robust i18n functions for both PHP and JavaScript that allow translators to create localized versions of your blocks. Key Principles PHP Internationalization Basic Functions Use…

  • How to add Google Tag Manager (GTM) to a site

    Categories: , ,

    Prepare Your GTM Code You should receive two GTM code snippets from Google: Example GTM Code: Note: Paste this code as high in the <head> of the page as possible: The <head> tag would be found in the header.php file. Paste this code immediately after the opening <body> tag: The <body> tag can also be…