[Solution] Composer: openssl and curl extensions errors

How to resolve openssl and curl errors when installing a package in Composer.

JavaScript: How to pass multiple parameters (and the event object) to an event handler

How to pass multiple parameters, along with the event object, from an event listener to an event handler.

JavaScript: Waiting for a function to finish before continuing

Different methods in JavaScript (promises, async await) to wait for a function to finish before continuing the code.

Cloudflare Rules: Fields description

How to find out what each field in Cloudflare rules means and what kind of value it returns.

How to flush permalinks in WordPress

Refreshing WordPress permalinks is very simple to do and can solve various problems with custom post types like 404 errors.

[Solution] Cannot add more than one item to a list block in WordPress 6.1

Learn how to fix the issue where you can’t add more than one item to a list block after updating to WordPress 6.1.

Allow a PHP script to run only through CLI

How to restrict the execution of a PHP script to CLI (Command Line Interface) only (so it doesn’t run through the browser).

How to run a PHP file on a remote server (SSH) via a Bash script

Learn how to execute a PHP file remotely (using SSH) via a Bash script.

How to automatically scroll to an element on a page

Different ways to automatically scroll to a particular HTML element on a page.

How to scroll to an element only if needed (using JavaScript)

Learn how to automatically scroll to an element on a page only if it’s outside the viewport or hidden behind a sticky header.

Smooth scrolling using only CSS

Learn how to create smooth auto-scroll using one simple CSS property.

How to fix auto-scroll position so the target element is not hidden behind a sticky header (using only CSS)

Learn how to easily fix the issue where the target element is covered behind a sticky header when auto-scrolling using JavaScript or anchor links.

How to run commands on a remote server (SSH) via a Bash script

Learn how to execute (one or more) commands remotely (using SSH) via a Bash script.

How to calculate estimated reading time with PHP

Create a PHP function that retrieves the estimated reading time in minutes for a provided text. Learn how to implement this on a WordPress site.

Useful JavaScript shortcuts in Visual Studio Code

Use these shortcuts to save time and automatically generate JavaScript code in Visual Studio Code.

How to execute JavaScript code only after the HTML structure (or the whole page) is loaded

Learn how to execute a JavaScript code only after the HTML content is ready or when the entire page has loaded.

User snippets in Visual Studio Code: A productivity game changer

Become a more efficient programmer by using the user snippets option in Visual Studio Code that lets you quickly insert your most frequently used code snippets.

 — Updated

Building a design system: Setting breakpoints for responsive design

In this post, we will focus on defining the CSS breakpoints that will be used to create a responsive design.

You should use a prefix in your WordPress code

Why WordPress developers should follow this best practice of using a prefix in their code.

Improve site performance with WordPress Transients

Use WordPress built-in Transients tool to quickly improve site performance.