Web Development

Responsive dynamic background images in WordPress

The most common ways to show images in a website are using the HTML tags <img> and <picture> or using the CSS property background-image. There are attributes in the HTML tags to show different images based on the browser viewport. Or you can use media queries to show different images with background-image. You could find …

Responsive dynamic background images in WordPress Read More »

Running PHPUnit tests in a WordPress plugin with Docker

Running PHPUnit tests in a WordPress plugin with Docker

There are several resource about running PHPUnit tests in a WordPress plugin with Docker. Here I want to share how I do it. You can find the configuration files in Github. I explain how to create the development instance in 5 steps: The folder structure Build a docker image to host the WordPress site Configure …

Running PHPUnit tests in a WordPress plugin with Docker Read More »

How to see the error logs in WordPress with Docker in Linux

Recently I was working in the development of a WordPress plugin and I didn’t find an easy way to see the error logs in WordPress with Docker. I started to read and learn about Docker some few time ago. I created a WordPress development instance using the official Docker image for WordPress in Docker Hub. …

How to see the error logs in WordPress with Docker in Linux Read More »