fbpx

Tips, tricks, and other valuable WordPress knowledge to save you time and make you money!

Blog

Redirect to Another page using JavaScript

There are three ways to redirect to another page using JavaScript. Option 1: Use window.location.replace The JavaScript code below will redirect the user to the URL specified. According to Mozilla, the replace method “replaces the current resource with the one at the provided URL” (Source). Replace removes the current document’s URL from the user’s history,…

How to rename a local Git branch?

Renaming a Git repository’s local branch can be accomplished using the following command: For example, if you want to rename the branch called topic/wip to topic, run the command below: If you would like to rename the Git branch that you’re currently working on, use the command below:

How to delete a Git branch locally and remotely?

In order to delete a Git branch locally and remotely, you need to run the following commands: Delete a Git branch Locally You can use -D instead of -d to force the branch deletion without checking the merged status. For example, if you would like to remove the topic/wip branch locally, run the following command: Delete a…

How to undo the most recent local commits in Git?

If you’ve ever wanted to undo the most recent local commits in Git before pushing your changes to production, you’ve come to the right place. There are two options to do this; both options reset the Git repository’s branch but one discards all of the changes while the other leaves the changes staged. Option 1:…

How do I revert a commit Git?

While developing software, you may run into a situation where a specific commit breaks functionality and undoing that commit will fix up the functionality. Step 1: Find the Commit Hash To revert a commit in Git, we need to first find the hash associated with the commit that holds the breaking functionality. To do this,…

System Restart Required Linux

When I first started building web servers using Linux I would run into the following message that would display whenever I SSH’ed into the server, and didn’t understand why I needed to restart the computer: Why do I need to restart the server? What does this message mean? I found out that you can see…

PHP Try Catch not Catching All Exceptions

This is something that I’ve run into a lot while programming. I’ll create a try catch statement when attempting to access a resource from a third party API and there are 10 different exceptions that need to be caught in order to prevent a 500 error from being thrown. In some cases I want to…

Setup Laravel Locally

Step 1: Create a Database In order for your Laravel site to work locally, you will likely need to connect to a MySQL database in order to run migrations, access and store data, etc. You can either connect to a remote database or create a database locally. To connect to a remote database, skip to…

Slow Page Load After Visual Composer Migration

If you have just migrated a WordPress site that is using Visual Composer and running into some very slow page loading speeds, there are three methods that we have found to increase your WordPress site’s page loading speeds and overall performance. Method 1: Initiate Reset of Visual Composer In order to reset Visual Composer, hover…

Want to use our API?