The ‘Pattern’ Block and How It Fixes a Longstanding Issue With Dynamic Data in HTML Templates

The ‘Pattern’ Block and How It Fixes a Longstanding Issue With Dynamic Data in HTML Templates

Posted by WP Tavern on October 26, 2021 at 4:31 pm
kitty kitty CATegory News
As I was perusing the latest block themes on WordPress.org, I came across a new favorite: Bai. The typography was on point for those who tend to write long-form content. Plus, it has a built-in dark mode design that did not make me want to rip my eyes from their sockets. I had planned to review it, but I did not have much to say. It is simply a solid design without much in the way of extras. However, in the particular test environment I had set up, one piece of it was broken. I ran into a longstanding issue with the block system. The default “intro” image used on the homepage will return a 404 if WordPress is not installed in the root directory or if the /wp-content folder has been moved. I switched it to another test site using the default configuration to make it appear. Bai theme homepage. This is not the fault of the developer. Block themes currently have no way to add dynamic values in their templates. Therefore, the only solution is to hotlink an image from a third-party site or add a static URL. This is a not-so-trivial issue that has, at least in…

…Full post on WP Tavern
Read Full

Similar Posts

Leave a Reply