fbpx

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

Blog

How to Block Online Ads and Trackers?

Could you get more sick of online ads and trackers? I can tell you that I can’t. Ads suck up your bandwidth and make for worse user experiences on countless websites that I frequent. And, as a developer, I’m conscious of my privacy while browsing and want to limit the data that I provide to…

How do I change an existing Git commit message?

In order to change an existing Git commit message, the easiest way to do it is to simply run the following command (where New commit message is your new message): If you would like to be able to adjust a multi-line commit message, use the following command: After running this command, an editor will open…

What are the 16 Most Important SEO Tips for a Blog?

We found the process of generating organic traffic to our blog a little opaque and overwhelming despite the plethora of search engine optimization articles out there. There are a ton of different search engine optimization (SEO) tips that help you get more traffic to your blog but we compiled our list of the 16 most…

Delete a Column SQL

In order to delete a column from a table using SQL (Structured Query Language), you need to run the following SQL query: For example, let’s say that you have table name called users that has the following fields: If you would like to drop the middle_name field from the users table, you would run the…

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…

Want to use our API?