How to use Tailwind CSS v2.1 JIT compiler with WordPress theme (2021)

Published July 13, 2021; last updated on September 10, 2021
How to use Tailwind CSS v2.1 JIT compiler with WordPress theme (2021)

Tailwind CSS is an awesome way of writing CSS – it completely transformed the way I write CSS. In this article I’ll show you how to use Tailwind CSS in a WordPress theme, and how to set it up with npm.

First, we’ll create the initial scaffold for our WordPress theme. Then, we’ll install npm in our project. Finally, we’ll install Tailwind and watch the magic happen. 🚀

  1. Creating a WordPress theme from scratch
  2. Installing npm in our project
  3. Installing Tailwind in our project

Prerequisites
To install Tailwind CSS,

How to output custom HTML for WordPress comments

Published January 4, 2021; last updated on September 10, 2021
How to output custom HTML for WordPress comments

When you’re developing a WordPress theme, chances are that you want to or need to implement comments. WordPress makes this really easy with the wp_list_comments() function. How do we output the comments in a custom HTML format?

The wp_list_comments() function can take over fourteen arguments, so you would think: choices enough! But unfortunately, there is no parameter with which you can modify the HTML output. You can of course apply CSS, but sometimes you do need a different HTML output to accomplish a certain design.

Overview of the_content: Gutenberg & Elementor

Published December 18, 2020; last updated on December 19, 2020
Overview of the_content: Gutenberg & Elementor

For beginning WordPress developers, it can be difficult to grasp the concept of the WordPress the_content() function. In this post, I aim to explain the_content() in relation to WordPress single.php and page.php template. I’ll also explain how it is used by Gutenberg, Elementor and other page builders.

What is the_content() exactly?

First things first, what is exactly the the_content() function? The the_content() displays the content of a certain page or post. You know that pages and posts are of course editable by users.

Close
Stay up to date with all things Laravel, Tailwind, WordPress & PHP

Subscribe now to my e-mail newsletter and get my latest articles and project updates delivered directly to your inbox. Never miss an update.