When editing your block theme’s theme.json file, a very useful thing to do is to add a reference that allows you to validate the data you are creating. This will also provide code hinting. This reference is to a document called a schema. How to Add the Reference If you add the following as the […]
Category: WordPress Templates
Initial Setup Download Duplicator Site For this exercise, please download the starter files and the screenshots collection, if I don’t distribute them in class. These are big files, so the download might be a bit longer than that for most of the files on this site. Most, but not all, of the screenshots for the […]
If some of your WordPress posts or pages have the following error messsage output to the screen ob_end_flush: failed to send buffer of zlib, etc, the following steps should fix it.
This exercise will show you how to write custom loops in WordPress. Some Sample Content For this exercise, I have created a Duplicator archive of a small site. Please download the duplicator package (updated Feb 2022). Updated duplicator package (Feb 2023, PHP 8.0.8) For the download, use Chrome rather than Safari: Safari automatically unpacks ZIP […]
MAMP Bug: zlib Compression
There is an annoying bug that sometimes occurs in the Windows version of MAMP. Specifically, a message like this shows up at the bottom of your pages, Notice: ob_end_flush(): failed to send buffer of zlib output compression (1) .. You can fix the bug by following these steps: find the version of PHP you’re using […]
WordPress Conditional Tags
This exercise can be done using any WordPress site at all. Use the site you created for last week’s series of follow-along videos: WordPress theming bootcamp. To begin, please download this starter theme. Put it inside wp-content/themes. Then open it up as a project with Visual Studio Code (or whatever editor you use), and make […]
WordPress Theming Bootcamp 1
For this exercise, I want you to follow along with an extended video series on how to write WordPress themes. This series will take you through a lot, so don’t start one day before it’s due or you won’t finish it. First, please download these files (updated Feb 08, 2022). This is a Duplicator archive […]
The goal of this exercise is to hone your ability to use WordPress conditional tags. They are easy to learn, but they give you great power to make concise themes. For information on conditional tags, here are two resources: Starter Files Please download the new screenshots package and the starter files (choose which php version […]
first, download the new and improved starter files. second, download this “starter” theme. third, download the screenshots Your task here will be to make only the front page of the site. On some posts, there will need to be working links to single posts and category archives, but you do not need to style the […]
There is no excerpt because this is a protected post.