Going to begin this question by prefacing that it has at least been a year or two since I’ve worked significantly with WordPress. Much of my work at that time consisted of building bespoke WordPress themes for clients (e.g the traditional PHP way).
Recently, I started working on a personal project and chose to use Gutenberg to build out the site. After forking the Twenty Twenty-Three, it quickly became apparent the entire theme structure is different. Theme.json seems to function similarly to functions.php for the front-end templates and parts. That makes sense. But what is confusing me are the templates & parts. The HTML has generic classes and inline comments which are, I’m assuming, interjecting CSS and assigning attributes to the HTML markup in the browser. I’ve tried removing the default top padding from the content wrapping div without having to forcibly override the CSS, but to no avail…
Are there any good resources out there for learning how to build a WordPress theme the “modern” way? Is there a list of properties available for use in their internal HTML markup? Haven’t been able to find anything on the WordPress Codex
[ad_2]