Applying 21st century design education

My roots in teaching

For any of you, who don’t know, I am teaching different fields of design since 2007. In my case I would call it a hobby, besides my life in agencies or self-employment. In some years it was more intensive, and I took more courses and in some I was lazy and only did some bachelor supervisions.

Since my start, I shared know-how in the fields of flash, yes, that awesome tool to create web beauty before Apple killed it in 2010. I taught the media lab and since UX got more popular, in the last 5 years, my courses mainly focused on User Science, Interaction Design and Interface Design.

This year I got the great opportunity to teach at another university.

Hunan university (HNNU), in China has a cooperation with Mediadesign Hochschule in Germany and so I was asked to teach undergraduate students about media design.

Challenge accepted.

Course Poster for public lecture Media Design

As you might know from former articles here, I am influenced by the thoughts about 21st century design education from Don Norman and as I had to prepare an almost completely new script, I incorporated some of the thoughts being discussed in the article Changing Design Education for the 21st Century in She Ji Journal.

To give you an understanding of the situation, I start with my challenges in the preparation of the course.

Article overview:

Preparing for the unknown – media design course

Preparing a “new” course is easy if the topic you teach is limited to certain aspects. User science for example focuses on everything on a theory level about users, about usability aspects and the application of the theory and measurement.

Speaking about the topic of “media design”, we have a topic that isn’t defined that clearly and has a huge range.

It starts with simple things: If I teach in German, German language applies and the cultural understanding of my domain, about what the lecture topic and the scientific base, dominates. Teaching in English, one (or at least it was my requirement) must cite English literature (as well) and align it to the scientific base of that domain.

Design and Media Science are rapidly evolving fields that intersect in the realm of media design, making it challenging to strike a balance between the two. I was surprised to learn that German and English literature, particularly in media science, have distinct focuses, with only a few prominent figures like Marshall McLuhan having overlapping influence. The exploration of this new theoretical foundation has been truly exhilarating for me.

You may be wondering why I am discussing English instead of Chinese. English was the prescribed language for the course. Although I attempted to gather information on Chinese media history, my outsider perspective required me to shift my focus to the English context. It is truly captivating to discover the challenges of immersing oneself in a different cultural domain. In addition to English, the course also provided Chinese translations for all of its content.

In other words, my feedback loop, or my approval, lacks, as I can’t understand what is really being said and if it’s correct or not.

Even though I am currently engaged in various consulting projects, my mindset remains that of a designer. Therefore, I willingly embraced the design challenges and organized the lecture based on fundamental principles of excellent design. It was essential to comprehend the target audience, understand the intended goal, and establish certain limitations to commence the process. Throughout the journey, I encouraged experimentation and iteration as I firmly believe in their value. Interestingly, these very design principles were seamlessly integrated within the lecture's content, reinforcing their significance.

Online lectures with a language barrier

Overcoming the language barrier is no simple task. It's important to acknowledge that the traditional format of a lecture, with one person reading from a script while others listen, feels outdated and antiquated. The constant interruption caused by translation breaks disrupts the flow of the lecture. While learning English may have its benefits, it poses additional challenges in maintaining the momentum of a course, especially from the perspective of the instructor.

I believe that practicing the material in both English and Chinese could be beneficial for the students' memorization.

Online lectures have become an essential part of education, thanks to modern platforms like YouTube. Traditional lectures in universities can greatly benefit from these innovative teaching methods. Especially during the COVID-19 pandemic, when isolation at home has become the norm, engaging with a screen may not be as enjoyable as in-person interactions. To adapt to this new medium, I have redesigned my lectures, aiming to bring back a sense of enjoyment for my students. However, when teaching interaction design, it feels incomplete to not be able to demonstrate real-world examples such as Nocki or Leap Motion.

In my special case about Media Design, it was clear, I couldn't expect everyone to wear a VR helmet. To improve my lecture, I did some research at the beginning, if I could add some subtitles while using a live translation. I ended up applying a live translation, as being described here (use google translator to understand the basics!). Then I added the subtitles via OBS to have the basic setup of my lecture.

As my topic was about media design, I also wanted to include some mixed reality features, to make the content being presented more tangible. So, I tested some stuff upfront, such as a simple gesture-based machine learning to use body movement. Therefore, I recommend looking at Daniel Schiffman’s video on “Zoom annotations with machine learning + p5js” on YouTube. Finally, I used the simpler tool snap camera and added it to my OBS layout.

My setup in OBS looked something like this:

21st century design education – experiences, tools, review
Screenshot of my OBS setting with Snap Cam integrated (automatic translation only visible in the output)

While doing all the preparation on the “design” of my lecture to communicate my contents, I thought it would be a good idea to do some live experiments, like what I configured myself with all my OBS, google translator – live translation and ML or Augmentation tests.

Teaching media design in best case needs an understanding of topics, such as interaction design or user science to dive deeper. In my case the students only did classical design disciplines such as typography, colors,... so far and my task was to give them an entry to the world of extended realities, of media installations in all shapes, of all variety’s media could be combined and designed.

Giving them a good sense of failing is part of working with so called new media, and so I made it part of my lecture.

And yes, I also failed right at the start, as the tool we used for teaching, voov couldn’t be assigned with a virtual camera. So I needed to present the little test with a simple screen sharing, as it’s fun to see how students react and a good icebreaker to explain media design with a multimedia example in real time.

In terms of our language barrier, my translator Yuwen did great, as far as I am even able to judge. It also felt quite good after 2 weeks to have a wing-woman with her as a translator.

In fact, I had many wing-women around me. Miss Dr. Sun did great in guiding the preparation and sometimes she had the chance to join our course, she could also share some of her research know-how, when I presented different design processes.

In China, we were fortunate to have local professors who provided invaluable support in coordinating the activities of the 80 students. It's hard to conceive of a course in Germany receiving such extensive assistance. It seems that here, students are mostly expected to navigate their academic journey independently.

To finish the chapter of the language barrier, here are some other experiences I had, while doing an online class:

Speaking about online lectures in the context of media design:

During the course – Developing ideas for the UN sustainable development goals

With the start of the course, an adventure started. First there was an open lecture. All the contents were available for the translator in advance, so we could have a good, smooth run.

Getting feedback from the students felt like the hardest challenge. As expected, it needed some time, but in the end, I was quite happy with all the dialogues. I would even say I am grateful. I could learn a lot. The real magic of integrating topics that are relevant for society unfolded its beauty throughout the course.

Learning targets

Before I go into this magic, a brief understanding of what my goals for the course were:

You see, there’s no goal that is directly connected to the UN sustainable development goals. Teaching for undergraduates should facilitate transfer thinking from my point of view. They need some basic skills, but the rest is about giving them a broader view.

Reflecting some of the writings in She Ji magazine, I wouldn’t change the education of designers entirely, especially for undergraduates. As I said, for me, teaching at university needs to facilitate transfer thinking.

If you want to get a view from a climate perspective, download the “new wave report” of Climate Designers.

If you remember the quote from Victor Papanek in my article “Design for the 21st century with Don Norman” or if I refer to Gunnar Swanson, who also shared an article in she ji “Educating the designer of 2025”, speaking of “Thinking through Making”, there are many pieces I incorporated in my course. I also believe in learning through doing. A good balance of theory and space for transfer thinking to apply learning to acting.

So I applied a glimpse in many different applications of design, examples from the MIT Media Lab to modern AI Art, from historic examples (in their context) to real applications I did myself in my agency life.

Speaking about Media in the context of design, we speak about an ever-evolving landscape.

Luckily many contemporary topics, such as NFTs, generative Art or Design, VR, Games, to name a few, were all interesting for the students as they could relate to them. In the end it is my target group, I am addressing the course, so I adjusted most of the content for them.

Final examination: Ideas for the UN Sustainable Development Goals

As I struggled a bit defining a good topic for evaluating the output of a four-week (5 days a week) course in media design, I fell in love with the idea to use the UN Sustainable Development goals quite early.

I could include research topics to identify an insight, one could facilitate group work, ideation, and sketching skills of the students. In any medium they wanted. Whether it be a product, a campaign, or a piece of art.

If you are not familiar with the Sustainable Development Goals, feel free to take a look at their website.

It was an experiment. And in my point of view, a success.

I introduced this overall, final challenge directly in the first week. And I guess most students had no idea what they were supposed to do (and that was intended). I showed them pictures of an unknown versus a linear path and many examples from the Cannes Lions submissions in the category of sustainable development goals.

Then I went back into media design theory, some media art history, and contemporary examples till I did some more hands-on exercises. Earth Day was the day to introduce them to the Disney method and to practice a brain writing exercise in their teams together.

During this first Challenge, the earth's day brain writing, the magic of ideas already unfolded. Besides the simple and great idea of having a worldwide holiday for the sake of our earth, many other sub-ideas were generated.

example Ideas for earth day
example Ideas for earth day
example Ideas for earth day

The following weeks included more theory, such as the thoughts of Neri Oxman and her krebs cycle of creativity or the general distinction between art and design. Till we went into the process of the conception itself: Showing own, real-world examples from my time being Creative Director at Publicis (Pixelpark). Most examples were selected for not showing “Advertising” as people know it, but creating products, events or translating ideas into unexpected results.

Many beautiful examples the students shared, accompanied the way till they learned about design processes, whether it be human centered design or the double diamond and many methods they could apply, such as design thinking or simpler ones, such as the re-framing matrix.

During that time, the students should focus on getting an understanding of their chosen topic from the UN sustainable development goals and explain why they chose it. As expected, the groups behaved completely different: visual focused teams, didn’t collect many insights and directly thought about executions, some didn’t break down a complex topic (such as climate change in general) to smaller junks and some were completely lost, to get started. Only one group completely followed the brief from beginning till the end.

There was a great dynamic during the consultation we had. What followed reminded me more of my activity of being a Creative Director, as a lot of moderation and ideation in real time was needed to facilitate the groups work.

Most groups really got the flow after the first consultation, and it was so beautiful to discuss with the groups. To speak about the Shanghai lockdown, about gender topics, about observations in their surroundings, about the general situation of our world.

I experienced the students as very motivated and passionate. It was great, and I would recommend for everyone to select topics that are relevant for society more often. As a teacher I am most happy if students make progress (themself), if they deliver unexpected things and surprise us as teachers with their personal development, reflected by their work. And the students paid me back all the things I love being a teacher.

To output the ideas, I chose the format of an idea board one knows, if you ever participate in any design or advertising award. The ingredients of their final idea board were:

(The last point could also be spitted into two points)

During the course the students could share their whole research. Some teams did interviews with affected groups, and most did great research work to narrow down the topic. As mentioned before, the danger for designers is mainly to run directly for the execution. This is not different from professionals, so one group really executed their idea, though it wasn’t needed as execution.

As the mentioned group also loved the work of Refik Anadol, they went for artworks being generated by real pollution data of the oceans. Along the way they taught themself touchdesigner and created an animated piece.

Though I could mention that generative design and extended realities were also later chapters in my course, and I also had examples in touchdesigner, besides p5.js, the real skills to finish their artworks were acquired themself. Other groups learned 3D programs only to visualize their idea. It was fantastic, as they applied the true sketching skills every designer needs to have… being flexible in thought to transport ideas.

Learnings from my course – 21st century design education

Some results of the course Media Design

You might have noticed that the students were also asked to share inspirational examples themselves.

Being a creative, it’s always a great way to get an understanding of the group, if they share what they like. I personally hoped for a lot of hidden gems from China, but most of the examples had no border and were from everywhere.
Having 80 students one gets a great variety of examples. There were many examples I also like and know, such as works from Olafur Eliasson, Adrien M & Claire B, Maotik Studio, SETUP, Saul Bass, Tobias Gremmler or Moment factory to only name a few.

Some (for me) unknown pieces were also shared, so we had work from MOTSE, Naufan Noordyanto, E-Go and Dabeiyuzhou.

Looking at some results of the Sustainable Development challenge and the final examination also makes me proud.

The first example is an idea around the topic of ocean pollution, this is the group that learned touchdesigner, to do the visualization. They also thought about a data mapping for the visualization. If they connect it to a NFT gallery, I will share the link here as well.

Dissolved of blue

Dissolved of blue students Idea board

The next example deals with the topic of violence against children. They learned some 3D skills to get the visualization going:

Protect Room students idea board

Here’s another simple, great idea. Umbrellas detecting acid rain and working with the data. As you see, the visualization skills are more undergraduate. But in terms of the idea, it’s a great one!

Huaqing umbrellas students idea board

My final thoughts are still gratefulness and how beautiful it is to see designers working on ideas to make the world a better place.

By heart, I wish the students all the best and I hope this beautiful generation of students will create an impact on the world.

Teaching in another cultural context and working on topics of society is great. I really recommend applying topics of society to design courses that are not closely connected to a certain skill, such as typography or interface design. Maybe design education for the 21st century is that simple, every three to four semesters integrate some opener module that helps to understand design as a concept from a broader perspective and give the students challenges that are connected to their surroundings.

Happy teaching!

What is 21st Century Design? | Interaction Design Foundation (IxDF)
21st century design is a practice where designers apply their focus to address the world's major problems. It is a shift from traditional design to seeing ...

What is 21st Century Design? - Radiant Digital
21-century design is about finding the root cause of the problems that plague society and creating effective, sustainable solutions. But are today's designers ...

21st century skills
21st century skills comprise skills, abilities, and learning dispositions that have been identified as being required for success in 21st century society

Design for the 21st Century with Don Norman – review
Difficult to start a review of a course if the host of the course is someone who you highly admire. So, I am

WordPress 6 – FSE Theme building, part 3

This is my third part on how to build themes for WordPress 6. In this case today it’s not only about themes, but also getting certain things working in WordPress 6 that are more tricky to handle in general.

In the first part, I covered some basic principles and showed the structure of the new Front Site Editing Editor of WordPress 6.

In the second part, I looked at different ways to modify the header and the footer and how to style elements.

If you followed along my hustles in the last part, be prepared for even more hustle this time. As for all systems – the more you want custom parts, the trickier it will get. So, I assume many of the practices I present here are not best practice, but a working solution.

Looking at my last to-do list, we still need to fix some stuff:

Regarding my to-do list, I would say, we do some fixings on the article page first and then modify the homepage, as we have most tricky elements in place. Regarding my indieweb support, I guess I give it some time till I am willing enough to work on it.

Finetuning of article page (get variable fonts going)

To get started with my part 3, I start with some lower hanging fruit. Some finetuning on the article page.

On the left, you see a screenshot of my original, elementor built and on the right my status on the rebuilt in WordPress 6 natively:

variable fonts in wordpress 6
 Type appearance as desired
Wrong display without variable settings

So, we still have some variations in the header we could fix later:

And we have some variations in terms of the article page itself:

To get started, we use the Front Site Editor to check the structure of the document. To edit the post layout, click on edit site and select the post template (called “Single Post”):

WordPress Theme development finetuning of page

If you didn’t follow my other steps, you might wonder, why in the header there’s an element saying, “attempt block recovery”, this is related to an animated SVG as Logo. The Editor can’t display the element.

For now, we focus on the content area and the document structure. After adding some elements, we have the right structure:

My main interest is the structure in the editor. The second part, the detailed styling could be done in the theme.json (I believe the first address to look for, though I don’t like it) or the style.css (for all the things, the JSON didn’t like or stuff that got overwritten).

In the JSON file I add some more settings:

"core/post-title": {
				"elements": {
					"link": {
						"color": {
							"text": "var(--wp--preset--color--primary)"
						},
						"typography": {
							"textDecoration": "none"
						}
					}
				}
			},
			"core/post-excerpt": {
				"typography": {
					"fontSize": "var(--wp--preset--font-size--large)",
					"fontWeight": "300"
				}
			}

And finally, I open the beloved style sheet again to try to smoothen my font.

Finally, this is the place to modify those settings. As a sidenote. Being lazy, I just copied the complete style attributes from the one page to the other (including font-sizes). It’s interesting, as those get overwritten by the settings in the JSON again. Something that is good to know to avoid some later extensive use of “!important” statements which mess up everything.

In the CSS file, you could add the smoothing settings to get it going (at that moment, i didn’t check, if there might be browser issues in other than chrome on mac OS):

h1 {
	--wght: 800;
	--SOFT:100;
	font-variation-settings: 'wght' 800, 'SOFT' 100;
}

Speaking about cross-browser testing and handling CSS, there used to be a lot of pain. Especially in the areas known as browser war. Optimizing for Netscape and all the early internet explorers was pure pain. Today, with a disappearing Internet Explorer 11 and all related pain, we mainly face strange browser topics (especially if you use a newer technology stack with CSS Grid or Web GL)… but honestly it feels like peanuts compared to the old times.

Now, in 2022, I would finally say, it feels so good to be able to modify styles in CSS (as a new enemy with JSON appeared – sorry, dear JSON we are not friends for styling yet… for structuring information I like you, but not for styling!).

Before I move on, let’s quickly export our theme again and place our newly created single post in the theme folder.

Finetuning of homepage

Opening the homepage, one might wonder, why the headline isn’t smoothened as well yet. This relates to the semantic structure of the page. The bigger headline being used here is a h2 and I didn’t assign the smoothing settings yet. (Also, to all designers and Content Administrators… h1-h6 doesn’t relate to styling at first! It’s about semantics and sometimes another semantic structure is better! – Please, don’t choose Headline because of their visual style, choose them because of their semantic correctness!

To Add the font smoothing, we simply add h2 after the h1.

To edit the homepage, we created a dedicated front-page template for it. To assign styles, there’s a direct option to use the “home” class that is being used for the front-page template, or you could assign classes to each element, that needs some tweaking. To keep an overview (for now), I quickly work with assigning styles to the single elements.

Feeling more home in CSS I could quickly add some classes:

.mf-mid {
    font-weight: 600;
    font-variation-settings: 'wght' 600, 'slnt' 0;
}
.intro {
    font-size:var(--wp--preset--font-size--small);
    text-align: center;
}
.intro-head {
    margin:0;
    padding: 0;
    text-align: center;
}
.winke {
    animation-name: wave-animation;
    animation-duration: 2.5s;
    animation-iteration-count: 3;
    transform-origin: 70% 70%;
    display: inline-block;
}
@keyframes wave-animation {
    0% { transform: rotate( 0.0deg) }
   10% { transform: rotate(14.0deg) }  
   20% { transform: rotate(-8.0deg) }
   30% { transform: rotate(14.0deg) }
   40% { transform: rotate(-4.0deg) }
   50% { transform: rotate(10.0deg) }
   60% { transform: rotate( 0.0deg) }  
  100% { transform: rotate( 0.0deg) }
}

So now even my hand is waving:

Working in CSS feels like a speed-up to the process again. Before I go for the button styling or the missing p5.JS background object, I try to modify some things for the arrangement of the block posts first:
wrong display of posts

The vertical alignment of the objects isn’t good. There’s some margin-bottom to each element, we need to get rid of the additional spacing. To keep it fast, we go directly for the CSS and see if it applies; yes, it does:

.home .wp-block-columns {
    margin-bottom: 0;
}

Depending on your preference of the separation of code and layout… this was the reason why there is html, CSS and no more table layouts, you could decide for yourself, if you want style elements in the editor or mainly via code. In my case, some styles are assigned to the elements. To get rid of an applied style, click on the three dots near the style attributes and reset the values.

Resetting styles in the editor

As my front-page is a unique site, i would recommend styling only the elements visible at that site in the editor or follow some clear separation. In general, it is recommended to style on one place.

Following the straightforward path in CSS, we could continue styling our elements:

.home .wp-block-post-title a {
    font-variation-settings: 'wght' 600;
    color: black !important;
}
.home .wp-block-post-title a:hover {
	font-variation-settings: 'wght' 700, 'slnt' 0;
	transition: all .3s;
	text-decoration:none;
}
.home .wp-block-post-title a:before {
    content: '';
    display: block;
    height: 12px;
    position: relative;
    right: 1px;
    top: 42px;
    width: 65%;
    z-index: -1;
    transition: all .3s ease;
	background-color: var(--wp--preset--color--secondary);
}
.home .wp-block-post-title a:hover::before {
	width: 101%;
}
.home .wp-block-columns h4 {
    padding: 6px 0 24px 0;
    margin: 0;
}

First, I added some font-variation settings and I had to overwrite the font-color with Black. As you might remember, for the post page, I already assigned a blue value for the post-title. Now I am using Post-title in another context (and I don’t want to do research, how to overwrite it in JSON), so I overwrite the color directly with “!important”.

What follows is the hover behavior of the variable font, so we change the font-weight from 600 to 700 in a short transition. As we generate our own line below the text, we add the yellow line via the a:before selector and add an additional hover behavior.

Finally, I changed the spacings a bit.

As a next step I have hidden the read more element and placed the arrow. The advantage: Even screen reader could read “read more” here:

.home .wp-block-read-more {
    color: transparent;
    font-size: 0;
}
.home .wp-block-read-more:before {
    content: url(/wp-content/uploads/2021/10/arrow-right.svg);
    transition: all .3s;
}

Et voilà this is our current result:

There were some additional elements I had to create, such as a headline, an additional line at the end of all posts and the contact elements. All those were added in the editor, as they are structural elements.

There are still some minor spacing issues, but we are getting closer to fixing the buttons and looking at p5.js integration.

Buttons in the Front Site Editor

Buttons in editor’s suck. For me, same applies for Elementor. In my case, I want a button that consists of two elements, an indicator, that is connected to the link behavior and the label of the button:

Button styling
Button styling hover

What I currently have in WordPress is a standard button:

Button styling as is

To get going, I first explore the options in the JSON file again. We could set overall styles for the “buttons” and “button” element. Till this point, I didn’t really get this structure (it is not possible to nest an image and a text in the buttons element). Guess one could get same effect by grouping the buttons. Hopefully they prepared the element to nest more options and to assign a link to the surrounding button element.

In the JSON file, we could change the font-family. All other options didn’t seem helpful for my target styling. So, I guess I will do it the old school way again. So we strive for a similar solution, as for “overwriting” the read more option before with a :before selector to replace it with an SVG arrow.

.mf-buttons .wp-block-button__link:visited {
    color: var(--wp--preset--color--foreground);
}
.mf-buttons a:before {
    content: url(./assets/arrow-right.svg);
    transition: all .3s;
    padding: 5px 10px;
    background-color: var(--wp--preset--color--secondary);
    -webkit-border-radius: 50%;
    border-radius: 50%;
    vertical-align: inherit;
    margin-right: 8px;
}
.mf-buttons a:hover::before {
    content: url(./assets/arrow-right-white.svg);
    background-color: var(--wp--preset--color--primary);
    transition: all .3s;
}
.mf-buttons a {
    font-variation-settings: 'wght' 800, 'SOFT' 50;
    vertical-align: middle;
    font-size:var(--wp--preset--font-size--large);
    padding:0;
}
.mf-buttons a:hover {
	color: var(--wp--preset--color--primary);
	font-variation-settings: 'wght' 900, 'SOFT' 100;
	transition: all .3s;
	text-decoration: underline;
}

As mentioned, I assigned a class name to the button and user :before selector to add some additional elements. Adding the before at the link a: has the benefit of being interactive and clickable as well.

The result would look perfect in Chrome (but now I remembered, why I created the element with nested elements before) … there’s an issue with Safari using the :before element like this; so we face the situation of two different displays; on the left: chrome, on the right safari:

Styling in chrome
Styling in Safari

To strive for a solution, we must change the way we write the code.

We work with border-boxes. So, in the nested elements, we rewrite the code, to get a display block working and apply some position settings.

We Add some more elements:

*, *:after, *:before  {
    outline: none;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding:0;
}
.wp-block-navigation a:hover {
    text-decoration: underline;
}
.mf-buttons .wp-block-button__link:visited {
    color: var(--wp--preset--color--foreground);
}
.mf-buttons a:before {
    content: url(./assets/arrow-right.svg);
    display: block;
    width: 42px;
    height: 42px;
    position: absolute;
    transition: all .3s;
    padding: 5px 10px;
    background-color: var(--wp--preset--color--secondary);
    -webkit-border-radius: 50%;
    border-radius: 50%;
    vertical-align: inherit;
    left: -50px;
}
.mf-buttons a:hover::before {
    content: url(./assets/arrow-right-white.svg);
    background-color: var(--wp--preset--color--primary);
    transition: all .3s;
}
.mf-buttons a {
    font-variation-settings: 'wght' 800, 'SOFT' 50;
    vertical-align: middle;
    font-size:var(--wp--preset--font-size--large);
    padding:0;
    position: relative;
    left:50px;
}
.mf-buttons a:hover {
	color: var(--wp--preset--color--primary);
	font-variation-settings: 'wght' 900, 'SOFT' 100;
	transition: all .3s;
	text-decoration: underline;
}

To explain it simpler, look for the read-more styling, we did before (also this one, wasn’t showing in safari). We add a block element and some sizing for the block.

.home .wp-block-read-more:before {
    content: url(./assets/arrow-right.svg);
    transition: all .3s;
    display: block;
    width: 24px;
    height: 24px;
}

Ok, with this being fixed, this is a new screenshot from safari (by the way, safari added a nice feature: PDF export your website and it looks like the screenshot):

Screenshot of current status

Ok, the next item we fix now, is the topic p5.js. Honestly, I build my whole site in elementor including a quick design within a very short timeframe; I won’t mention the number here, but let’s say… a weekend was enough 😉

Doing the same thing in WordPress Core takes me ages; but it is only because of the tricky parts, such as P5.JS, variable fonts and some motivation to do it the “right” way. You know… getting something to work somehow is very different from finding a solution in the way it maybe was intended to (guess speaking about WordPress 6 it is too early to say so).

Get P5.JS going in WordPress 6

Embedding Javascript in the core directly is a pain. In a page builder like oxy or elementor, you just organize your stuff your way. Working with code, even php, oxy builder is the best weapon! In general, I would say from a developer perspective, oxy is the best builder. For my purposes, it’s not the fastest to build, it’s elementor.

Telling you the whole p5.JS story, to get it working, would be annoying. To make it short. I fell into the WordPress trap. Testing one stupid plugin, after another and getting lost in a lot of searches. This is really an issue about WordPress and search-engines. I expressed my doubts about search engines earlier in my article “value, objectivity and the risk of being trapped by search”. With WordPress being so popular, search engines need some time to align their search results to the new release that changed a lot of things, so as is, it wasn’t possible to find quick answers.

My recommendation to get JS going is the CSS & Javascript Toolbox. For my purposes the free plugin was enough. The description is quite straightforward: the perfect WordPress plugin for adding code.

This is what my setup looks like:

CSS & Javascript Toolbox to use p5.js on the website

The first one at the top is loading the general p5.js script. If you also wonder, why there isn’t a minified version… yes, it sucks. There’s an alternative called q5.js. Therefore, you need to make some adjustments to the code. I haven’t had the time to give it a try, so far. But saving around 80 kb of data-weight for loading the whole library isn’t a bad saving! Especially if you think about stepping into digital sustainability.

The second one is the script I am using to generate the background image. It’s always a new image for each visitor. You are also able to define the position, where the script should be loaded, and on which pages it should be loaded. In Elementor you get features like this boxed in the pro version of it. For WordPress Core, you need this enhancement.

You could also use the tool to assign certain CSS styles to certain pages. Also, a comfortable feature, if you want to save data weight and optimize each page to the real usage of elements.

To get the code going, I also added some other things. In the editor I needed a container for the canvas object and in the styles, I added some style settings to give it a size.

After setting it up, you get this result:

Applied p5.js via CSS & Toolbox integration

With some more tweaks in terms of spacing, we got the desired result:

Tweaked site

Resume WordPress 6 and the question of speed

In many disciplines, there are haters and critics. So, with every WordPress Update getting closer to WordPress 6, more and more users complained about the new Gutenberg editor. Also, I complained a lot, especially, getting used to editing styles in the JSON. To a huge extend this is a learning process.

Same applies to the discussions about page builders in general. Whether it be wixx, webflow or any WordPress specific builder, such as Beaver, Divi, Elementor, Fusion Builder or Oxy (at least the only once I worked with). Everyone reflects on own experiences and gives a recommendation. Unfortunately, today, we get pushed in search engines for more expressiveness, see also the recommendations of search tools.

One of the biggest points for criticism on page builders is page speed. To give you a quick glimpse, comparing my current implementation on WP 6 Core and Elementor on the live site, we see the following in lighthouse (for Desktop):

Lighthouse Test WordPress6 core
Lighthouse Test Elementor

For mobile my real site outperformed my test site by some points. Even I was surprised, but I must add, that for the new site, some elements were still missing (such as indieweb support, a progressive web app and the blue circle animation on the homepage). But also, the real site got some additional tweaking’s with caching and stuff. Doing tweaking on the new site will lead to a better result (a quick check with wpfastest cache boosted the mobile ranking by 14 points up). But still, as I wrote in my article on digital sustainability… it depends on the overall effort and energy being used during the creation of the project.

Anyway, we mostly live in a world of assumptions. Also, for a website the best solution depends. Though being able to reproduce my result in Core feels great and I tend to change my live site to WordPress Core soon, I can’t recommend it for a site like this.

in terms of a client website using more advanced features, such as more JS, more popups, more interactivity, or animation, I would recommend building it in a builder. I already wrote my wish… it’s connecting the builder to the core directly, so the export is not too DOM heavy in the case of elementor (and divi). I also mentioned that I think the best builder is Oxy. Unfortunately, I only build one website in oxy so far and far more than 30 in elementor. And till now 3 in WordPress 6 Core.

For basic websites without much interactivity, multimedia features, I would recommend WordPress 6 core. There’s no money needed for plugins. Or if you have a simple site and want a more intuitive Editor, go and build the header and footer in core and leave the content for the free elementor plugin. This is also fine. Really depends on the site you are going to build. Be open to any solution and use the one that is best.

For writing my posts I use the core since the start. For lay outing the pages, I used the builder.

Additional resources:

Here are some recommended sources to keep you going:

WordPress 6 – FSE Theme building, part 2
Following up my last article outlining some basic principles about the new way to build themes for WordPress

WordPress 6 – FSE Theme building, part 1
I have been playing around with the new Front Site Editor of WordPress since the beginning of the year.

WordPress 6 – FSE Theme building, part 2

Following up my last article outlining some basic principles about the new way to build themes for WordPress 6, some facts about the file structure and the almighty theme.json, we continue to rebuild this site.

Before starting again with the theme.json file. As a little recap. In part 1, we looked at:

In this first step, we collect some elements we need to fix, that are not fixed yet:

In this guide I try to cover the first three to four points.

Theme.json and block elements

One of the last elements, we added in the editor in step 1, was modifying the look of an existing block. We modified the “post-date”.

If I look at an article at my test site and my published site, I could see, that quotes also didn’t look the same way.

Screenshot of a quote style as it should be
Screenshot of a quote as it looks like

To modify the look, we open the theme.json in a code editor again (we used visual studio code). Feel free to use my last version of the theme.json.

If you use my JSON file, you will notice, that at the beginning of the file, the schema got added, so my editor gets access to the available terms. If you are not sure, how a module is called, open your editor (and make sure your language settings are English).

Screenshot of the editor

To style the quote, I realized for myself, that WordPress 6 still needs a lot of work or maybe at some degree I miss some point.

What we need to do, is adding a border to the left in blue and adjust the spacing and color settings.

"core/quote": {
                "border": {
					"color": "var(--wp--preset--color--primary)",
					"style": "solid",
					"width": "0 0 0 5px"
				},
				"spacing": {
					"padding": {
						"top": "8px",
						"bottom": "8px",
						"left": "32px",
						"right": "32px"
					}
				},
				"typography": {
					"fontWeight": "300",
					"lineHeight": "var(--wp--custom--typography--line-height--medium)",
					"fontSize": "var(--wp--preset--font-size--large)"
				}
 }

Additionally, I checked the editor if there wasn’t any applied style on the element. In my case a bold from the editor got me some extra work because I thought my styles won’t be working.

The result looks partly ok… but only partly. There’s a mysterious spacing at the top of the quote and the cite also got larger:

Result of my styles from theme.json.

The Spacing is mysterious, as when I remove the 8px, the whole text is at the top edge again; even without a more than 20-year eye, trained in pixels, anyone sees that the top padding is far larger. Another strange thing about JSON is the “elements” handler.

My guessing would be, ok, the whole blockquote was transformed with the font-size. Maybe I could adjust one element only, in this case the cite element.

Being in the editor, in the JSON file, I am allowed to use “elements”, but only headlines are allowed (so h1 to h6) and links; honestly, I don’t see the point, why not allow all elements?

If I would be able to use cite, something like this would be possible:

"core/quote": {
                "border": {
					"color": "var(--wp--preset--color--primary)",
					"style": "solid",
					"width": "0 0 0 5px"
				},
				"spacing": {
					"padding": {
						"top": "8px",
						"bottom": "8px",
						"left": "32px",
						"right": "32px"
					}
				},
				"typography": {
					"fontWeight": "300",
					"lineHeight": "var(--wp--custom--typography--line-height--medium)",
					"fontSize": "var(--wp--preset--font-size--large)"
				},
				"elements": {
					"cite": {
						"typography": {
							"fontSize": "var(--wp--preset--font-size--medium)"
						}
					}
				}
      }

Unfortunately, it’s not. For now, I keep it as an unresolved matter.

Font-variation-settings

Digging for one solution might bring new ideas for another thing.

In my case, there’s no workaround outside the styles file, so far. Same applies for font-variation-settings. Looking in the living reference, it is not possible to assign other font properties than the ones, being mentioned here:

Screenshot from the WordPress reference on available text styles

Being a bit disappointed about those two facts (and seeing many rebuilding stuff coming, when I do it via a workaround and those things will be integrated later), I continue with my list from the top.

Assigning a header and footer to a new created template/page type

To assign a header or a footer to our newly generate front-page theme, we have two options. One is using the editor; the other is using our code editor.

Using an editor, we basically open two files from the templates folder. The first, is the front-page.html file, we copied in our first session to the folder. The second file is another template, we already know is available with a header. Son in this case I open a single.html file.

The next step is simple copying. This one sounds like a header, so we copy it to our file.

<!-- wp:template-part {"slug":"header","tagName":"header"} /-->

And at the end of the file, there’s also a footer we are able to copy.

<!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->

This is fairly easy!

The alternative is going for the editor. In the editor we edit the site and select our front-page. Clicking the first element on an activated list view, we select, insert before and in the generated paragraph we start typing “/” and write and select header.

Inserting a header via the editor

We are either able to create a new header or to assign a header that is available. This is a neat feature I needed for my kindergarten site and a login area before.

The same is possible with the footer. In my case I always selected the ones that were available.

Grouping content to apply overall style settings

To finish this step, I would export the template again (click the three dots at the top right and you will find the dialogue) and copy from the templates folder, the newly created front-end template to my themes folder.

Why would I do it that way?

Open all templates. If you opened the view, you see a little note at the template that is has been modified.

Template being modified indicator

With the three dots to the right, you could reset the template. Attention, you will get the version, that is in your folder.

So, for every now and then, I recommend putting the adjusted templates to the folder to have them ready as a backup.

Modify the header

To modify the header and the footer, we quickly look at the overall file structure. The one way is the classical way via the code editor. In the folder parts, you will find the footer.html and the header.html. Opening it, at least for me, they don’t look very familiar:

Header source code
Footer source code

The written code, you see here, is also available to copy via the pages I shared in my first part in the end. So, from the MOBA (Museum of Block Art), you could for example copy the code of a block and add it in the code. Something, you might play around. Here’s an example to check out the code: Abstractions Study No.8.

As you might guess already, those blocks are built in the editor, but as shown with the front-page template before, you could create something in the editor, export it and then have it ready in the file folder (and as code).

We also start going for the editor. In the editor go to the template parts and start editing the header.

Template parts selection

My starting point (opening all the nested list elements on the left): What you will typically do, is uploading your site logo. If the upload button is not available in the space, click on replace to select your file.

Modifying the header
Changing the site logo

In my case, my site logo is an animated SVG. Something WordPress can’t handle here to be used as site logo (as of end of May 2022). So please select a picture first, in best case a png file (we could change special things like this later in the code). For now, I chose a png, static version and adjusted the proportions and behavior on the right. Feel free to also adjust to your preference. This logo will also be used as favicon later.

Site logo parameters

The next one is the site title. Obviously, it is formatted in a different font. As you might remember, we could also style core elements in our JSON file (which I would recommend), trying to style it with the editor, won’t work in this case, see picture on the right. So, we switch to the code editor and apply basic settings there.

In the blocks section, add the new element site-title and your desired attributes. In my case I adjusted some spacings, transformed the text and had to remove the underline of my link. Therefore, we have a nested statement, with an element inside a core attribute.

"core/site-title": {
				"spacing": {
					"padding": {
						"left": "6px",
						"bottom": "4px"
					}
				},
				"typography": {
					"textTransform": "lowercase"
				},
				"elements": {
					"link": {
						"typography": {
							"textDecoration": "none"
						}
					}
				}
			},

Unfortunately, I encountered some WordPress bug doing so. After reloading my editor, it almost looked good, as I aligned the rows to bottom. The preview ignored it (also in other browser, so it wasn’t a caching issue).

Correct display in editor
Buggy preview

The property to align the flex items to the end is not applying currently. For now, I leave it like this and only add the same distance to the bottom for the element of the navigation and some spacing to the links. From my understanding, I would do something like this. Unfortunately, again there are different behaviors in the editor and the preview.

"core/navigation": {
				"spacing": {
					"padding": {
						"bottom": "4px"
					}
				},
				"elements": {
					"link": {
						"spacing": {
							"padding": {
								"left": "10px",
								"right": "10px"
							}
						}
					}
				}
			},

The editor shows a behavior, that is ok. Using the preview and the inspector, we notice (apart from the mentioned flex issues from before), that the spacing of the links is not applied. By the way, it is quite strange to get used to the wordings. So, no matter, if I tried the code from before, or nesting the link of the navigation as link element, similar, to this:

"core/navigation": {
				"spacing": {
					"padding": {
						"bottom": "4px"
					}
				},
				"elements": {
					"link": {
						"spacing": {
							"padding": {
								"left": "10px",
								"right": "10px"
							}
						}
					}
				}
			},

For both ways the rendered site ignored my styles… and in the inspector you could see that those styles were overwritten in the code, by a styles.css. OMG the classical style sheet, finally 🙂 unfortunately not, as you won’t find this style in the existing theme folder. Our styles.css is still empty… another item for our backlog to get handled.

One last thing to get fixed is the spacing of the header. We need more spacing to the top. As the handling of CSS in JSON and the application often kind of suck, we do it in the editor we a spacer.

In my current header from the template, there’s already a spacer to the bottom. One nice thing of the editor is you could drag elements in the list view to another position. Or in my case, I want some spacing of 12px to the top and the bottom (I would absolutely prefer to do it via code, but in terms of simplicity, just do it that way). First, modify the spacer to 12px and then duplicate it and drag it to the top. At least in the editor, it looks good… so now, we test one thing… the export and placement in the folder to hopefully get some better effect at the frontend.

Spacing in the header via the editor

Now we export the template again. Remember in the right column under the three dots, there’s an option to export templates.

Being exported, we get a code that looks quite promising in terms of the alignment, as we obviously see in the code “verticalAlignment”: bottom… keeping fingers crossed and replacing the file to finally get our desired effect.

VerticalAlignment being in the theme export

Unfortunately, the effect is still not being applied in the frontend. There’s some mystery going on as of end of May 2022…

So, before you are frustrated, a little example as there’s always a way to work around and get the effect one is aiming for. Regarding styles that get overwritten, it is likely, we could solve it the classical WordPress way, such as by using wp_dequeue_style( string $handle ). Therefore, we need to work in PHP or do it another way, overwrite in styles.css.

Another example, on how to modify is integrating my animated SVG Logo in the header. Honestly, I didn’t figure out yet the official WordPress way on how to do it, but I know a working solution.

Therefore, open your header.html in the folder and look for the element site-logo… after the declaration, we could put in another element, such as my logo. If you want to play with SVG Logos, look at svgator.

Integrating the code in the source code, gives me direct output in the frontend:

Added animated logo via code editor
Preview in Browser, Code being applied

Unfortunately, I didn’t find a proper way to nest it, to “overwrite” the normal site-logo. Maybe it’s not intended to happen. In this case I recommend getting rid of the site logo and adding the code manually. And search for an appropriate solution in some month. Currently the search results are too bad if you have specific issues around WordPress 6.

Modify the footer

Our next mission looks more promising. The footer:

Footer we need to design

Looking at a design frame, one could thing, let’s do it via CSS grid…; that’s a normal thinking if you switch your mindset thinking like a developer. Getting started with WordPress 6, I try to see it with the block perspective first and build it via blocks. Maybe the best way to get started with WordPress 6.

So, what you might see are columns. One way would be 50% and 50% with the second column having a nested column with 3 columns. Let’s try this:

Applying structure of footer in the editor

While editing, you might think, how to build the link list. So, in my example, I first quickly did a list and then thought, ok, better do a navigation.

Menus or navigation in WordPress 6 kind of suck at the moment. To create a navigation, type in navigation. Then you are asked to select an existing menu or create a new one. In my case, as I have different menus at the top and at the bottom, I chose “start empty”. Unfortunately, you won’t find Menus in the backend dialogue under Appearance anymore. In fact, there no dedicated spot as of May 2022. I am sure, that will change, as it is very inconvenient like it is.

After you filled your first menu item, just click enter and you will be guided to the next item. Always type the name of the page and select the page.

If you need custom links (in my case I need custom links for twitter, github, codepen), just type in the link title, without selecting an element. Afterwards edit the element and add the desired link.

Editing custom links in navigation

My first results, building it that way was quite good:

Screenshot of first result from editor

I am missing my last line and some formatting could be improved. On my original example I used a two-column layout for the list. As the navigation gets translated as a list, I will apply this effect here, too. The way that will absolutely work, will be CSS and in this case, I will only try the CSS way, directly.

Finally… honestly, a CSS file feels like home, after working in the JSON file and trying to get hold of the new structure (and all the tiny little bugs). So, here’s my empty one:

And to modify something directly via a class, you first need to think of a class name and add it in the editor. Having my navigation block selected, you open the advanced settings of the menu container. Et voilà you also see the answer to the question, where the Menu name might have hidden… here it is.
I added a menu name and further down, additional CSS classes:
Individual Navigation name and custom class

And I ran into trouble… as the styles weren’t applied yet.

In my starter theme, the styles weren’t assigned – in the WordPress language, enqueued.

Adding a functions.php to get the style.css going

Till now, I didn’t even realize, that block themes could run without a functions.php. Speaking of a simple site, this is great. As I hoped, I could do the whole tutorial here without any PHP, it sucks.

So, we create a simple PHP file to get the style.css working. Therefore, please open your editor and create a new file called functions.php and add the following lines:

<?php
/**
 * Functions and definitions
 *
 * @link https://developer.wordpress.org/themes/basics/theme-functions/
 *
 * @package mf-fse-basic-orig
 * @since 1.0.0
 */

wp_enqueue_style( 'style', get_template_directory_uri() . '/style.css',false,'1.0','screen');

In the file you will find the most important link to get to know about the functions.php and I also only copied the existing example from here and slightly modified it for me.

Afterwards add the file to your project folder/upload it to your root folder:

folder structure with functions.php

Et voilà, some styles are working now – As I was wondering, while typing in the styles file and nothing happened, I added a simple red color for all navigation links to check if it was working at all, till I realized, there’s no functions.php to enable my style.css.

I would absolutely recommend to do the same… use a style with an obvious effect (and  !important) at the end to see if anything is working or there might be a bug elsewhere.

Styles working (with debug styles)

Footer Styling – Styling in style.css

In my case, I wanted the navigation list in the footer to appear in two columns. And I also wanted to change the link behavior of all links (also for the header). For my purpose, I used the following style for now (this is my whole style.css as all other definitions come from the JSON file or native styles):

/*
Theme Name: mf-fse-basic-orig
Author: Manfred Feiger
Author URI: https://manfred-feiger.com/
Theme URI: https://manfred-feiger.com/
Tags: full-site-editing
Text Domain: mf-fse-basic-orig
Requires at least: 5.8
Requires PHP: 7.4
Tested up to: 6.0
Version: 1.0.0

License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

All files, unless otherwise stated, are released under the GNU General Public
License version 2.0 (http://www.gnu.org/licenses/gpl-2.0.html)

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned
with others.
*/

.mf-columns ul {
    width: 100%;
    columns: 2;
    column-width: auto;
    column-count: 2;
    
}
.mf-columns .wp-block-navigation__container {
    display: block;
}
.mf-columns ul li a.wp-block-navigation-item__content {
    padding-bottom: 8px;
}
.wp-block-navigation a:hover {
    text-decoration: underline;
}

This is the results of the applied styles:

Resulting footer of the applied styles

For the time being I am happy and as always, I recommend exporting the theme again and copy the newly generated footer to the appropriate folder.

Step by step, we are getting closer to a theme. But again, the tiny details are the true pains we are facing. Working with styles still feels more comfortable.

To get my current file, feel free to download it here.

Here are some recommended sources to keep you going:

If you are one of the block editor haters, explore some magic that could be generated with the editor:

WordPress 6 – FSE Theme building, part 3
This is my third part on how to build themes for WordPress 6. In this case today it’s not only about t

WordPress 6 – FSE Theme building, part 1
I have been playing around with the new Front Site Editor of WordPress since the beginning of the year.

WordPress 6 – FSE Theme building, part 1

I have been playing around with the new Front Site Editor of WordPress since the beginning of the year. First, I recreated this page on my development environment to test about strength and weaknesses and therefore modified the existing twenty-twenty two theme.

Then I also created my beneficial project for this year. A new website for our kindergarten (including a member’s area). As it’s a parent initiative it takes a little while to finish it. If it’s done, I am happy to share the link.

Finally, I guess it’s time to write a little review and some recommendations. Therefore, I also start from scratch again, as WordPress 6 is now officially released.

For all, who are totally new to Web-Technology, I wouldn’t recommend my article. I focus on the WordPress part of it, so where you find certain elements to modify. So, I highly recommend a basic understanding of CSS and it is good if you ever modified a XML or JSON file before.

Initial steps to get an understanding of how block themes and the Front Site Editor (FSE) work

My initial step for this guide was googling for “WordPress 6 block based starter theme” and modifying the term a bit. My resume… I must write about it, as it is hard to find relevant articles at first. It’s better to search for the appropriate links on suitable platforms. One of those is for example Gutenberg Times. They curate articles around Gutenberg and they recently shared some Block Theme generators.

From my understanding of WordPress (not being a theme developer), being experienced with builders such as Elementor, Oxygen (Divi, Avada) and also starter themes (from the old WordPress World), such as _underscores, I thought starting with a block based theme builder is a good idea.

Finally, I will also be able to compare it with modifying an existing theme, such as the twenty twenty two, as I already used it to build the kindergarten website and to try my own site here. This site is currently build based on elementor.

In my point of view the fastest way to build WordPress Sites. But on the downside, you get a lot of code (that could be compressed to get a good rating for Lighthouse and other tests, but still you won’t be able to get great results, as the code is heavily nested) …. especially on mobile sticking with the WordPress Core will get you a more efficient site.

Nonetheless, if you read my article on “Stepping into digital sustainability”, the transfer cost for me, creating the website in the new block style way (at least for this site, as I use p5.js, variable fonts and other more tricky things, such as indieweb support and animated SVGs) exceed the cost of building it with WP Core. Though I will get better stats and a badge like website carbon will look even better, the work time and the energy being used, while creating exceeds the other cost for years (except my website will get 100 k hits a month).

Little Resume on WordPress 6 as of Mai 2022

Before you go into my little review, guide, I share my first impression:

Block Theme Generators

ThemeGen.App

My first contact with theme generators, was the generator by David Gwyer, called ThemeGen.App. For my test I liked it and I used it to get a better understanding about the structure of the JSON file, being essential for new WordPress Themes. The generator is fantastic and is a tool that should always be opened in a tab, as you could generate the JSON file in every detailed aspect.

For being new to the whole world of Front Site Editing (FSE), I wouldn’t use that one. But bookmark it, for the moment, you got a basic understanding of the structure to deepen your understanding about the JSON file.

Screenshot ThemeGen Block theme generator
Screenshot ThemeGen theme.json

WordPress Theme Builder by Pottlepress

The next generator is a fun way to get a first understanding of how block themes work. Without the need to do any installation on your own server, you get a setup system from instawp and can build your theme in the WP environment itself and export it later.

So, no code is needed at all to create the theme. Here’s the “theme builder”.

There’s also a video on YouTube to follow along from Jamie Marsland. If you are new to WordPress 6, watch it and follow the simplified instructions on the theme builder site.

Screenshot WordPress 6 Theme development – theme builder pottlepress
Screenshot YouTube video from Jamie Marsland

Fullsiteediting.com generator

For my article here, I tested the one from Carolina Nymark, she has provided an overview on Front Site Editing (FSE) at fullsiteediting.com.

Screenshot block theme generator fullsiteediting.com

When I use a generator or test anything on the net, I mostly quickly go for the button to execute, or in this case to generate, as I don’t like reading too much. Compared to the first generators I mentioned, at first sight, it seems, not as many colors are being offered.

Regarding Color options, you directly see, that the naming within elementor and the WordPress Generator are different. That wouldn’t be an issue for me, but the need to switch the color mode to copy type in a hex value drove me mad for at least 10 seconds (copying also didn’t seem possible for me while using chrome).

Screenshot editing values
Screenshot from elementor editor being used for this site.

Unfortunately, the theme types “basic” and “advanced” both use GULP. In other words, some know how around GULP would be needed to go with the prebuild themes. So, I would recommend using this Generator only in empty state if you are not familiar with GULP.

As You might be able to see in the screenshot, I didn’t check all the gradients and duotone. Kind of a contemporary style element. Too many websites use gradients nowadays.

After typing in all values, one could generate a file to download.

In this case you download the file and upload it, as you did before for other themes in the “old” WordPress world.

If you are not familiar with the old way, log in to your WordPress as an administrator and go to > Appearance > Themes and click on the button, “add new”. Finally press the button “Upload Theme” and choose the ZIP file and press on “Install now”.

After installing, I would normally recommend going to the themes page, before activating to look at a live preview. In this case, the option is not available, so let’s activate the theme. As no Screenshot is available in the folder, you won’t see a picture:

WordPress add theme by upload
WordPress added new, generated block theme

After the activation, the site looks kind of ugly, like the one on the left. A starter theme has not too many styles, but also not too much clutter to get rid of.

Blank block based theme
Modified theme

To give you an understanding of how I already modified a twenty-twenty two theme, there’s a shot of the theme on the right, I already created before, based on a block theme.

The next steps I normally do, is checking a “naked” theme directly in lighthouse and check in the browsers console, if there are errors. In my case the result looks like this:

Lighthouse blank theme
Lighthouse modified FSE theme

Ok to get started, but as mentioned before, please make sure you are using the Empty Theme to beginn. In my case I only need the basic page types and only a header and a footer. The tricky part, about my site are the details, such as variable fonts, animated SVGs and the integration of p5.js.

First steps in the Front Site Editor (FSE)

To get started, go to the site preview and you will notice that there’s a new button; the one for “edit site” give you access to the new Blocks World.

Afterwards, in my case I end up with the view to edit my existing site:

Edit site, initial view
Edit site, list view opened

In my case, it looks kind of messy, as I already played around with the editor and as mentioned, had an elementor page before. For explaining the basic structure, it is good enough though.

The first step, I recommend. Always open the list view. It helps to have an overview of the current structure. And one great benefit about block themes is, that you are able to modify the header and the footer directly. This also gives you the interesting option, to combine WordPress 6 with the free elementor version (for handling the content).

For smaller websites, headers and footers are mostly easy. The more content pages you will have, to more complicated, it will get and you will have to go for custom menus anyway (they could also be a pain with a page builder, so strive for coding complex menu structures!).

The other element, you should familiarize now, are the button options at the top right.

Click on the styles icon to the top right.

In the styles option, you could modify some basic style settings. Feel free to play around, but as you might have noticed, there’s still a little “Beta” marker.

The last element, you need to know, is the drop down in the middle of the screen. As my homepage is of type “page”, I see a marker for page with an arrow to the bottom. Let’s open it:

Edit site, styles view
Edit site, change template

By clicking on “Browser all templates” to see all available templates of the starter theme, we created.

In the left menu you could also switch to template parts (in our case a list of header and footer) and back to the site again (attention, you will go back to the view we had before).

By clicking on any of the templates, you will be guided to edit the template or at the top right you have the option to add a new template.

View of all available templates
Add new template view/options

So, for example, let’s say, we want to create a template for the type of homepage (front page). And we will be guided to an empty screen., being able to edit the elements.

As recommended, always open the list view to the left and on the right, I would recommend switching to the settings icon.

Now, you are ready to fill the content with blocks. If we are speaking about a template for sites that are supposed to have different contents, you need a loop, such as the query loop. But that’s not important for now.

In my case, I want to recreate my homepage. To do so, let’s build it, ignoring Header and Footer first. If you never used WordPress Block Editor and are not familiar with other Tools, such as Notion, the way to access the content could be painful.

Empty template view
Add new element via typing
block options view

Start by typing “/” and you will be shown the “next best” options. if you want an overview of all options, click on the plus icon and the block inserter will open. Explore it on your own. There’s also a pattern library. In my case I am not the biggest friend of all pre generated templates (same applies for elementor or other page builders) … deleting all single values in editors’ kind of sucks. I prefer centralized management.

In my case, I quickly rebuild the basic structure of the homepage. Start with some text and just paste it. You could change the Content type, paragraph, or headline, also after copying the content; therefore, click on the icon of the block type; in the example I transform the paragraph to a headline.

And the headline gets transformed to a h3 (my other one before is a h2):

Screenshots editing
Screenshots editing

On my homepage we see an aggregation of the latest links, so this is a good example to use either “latest posts” or “query loop”. If you are not sure, what a type does, just try both. I went for the query one and chose an existing design block.

So, if I would look at my homepage now, it would look like this (no matter what kind of content of the real page would be, as we are creating a template for the homepage at the moment, it always overwrites each assigned page). In your case, I would assign an empty page as homepage with a good SEO title:

Query block
Frontend shot

What we see now, is a partly styled element, as you see on shot before, the pattern has some own dedicated styling already. So, let’s modify 🙂

First, I delete my latest posts display as the Query loop is more customizable. Therefore I recommend always opening the left list view. You see, latest post is just one boxed element, that could be modified on the right. But the Query loop is a great tool to be modified by nesting elements.

Now it’s time to play with settings. For example, you could modify the amount of posts being displayed, by clicking on the settings icon. In this case it is really getting used to the Block editor and all the options. Play around and learn.

Changing design
Changing options

In my case for the query only a link icon would be missing. To add it I could add a column to the right and add a picture, by changing the background color to some greyish, I would also have the chance to see it (Also make sure the column width makes sense). In my preview, I end up now with this one:

Changing parameters
Early preview

One issue I am facing already, is how to link the icon next to the post text, with the same link. WordPress Plugins, such as toolset provide an option to influence the loop completely. For the moment I am writing this post, I won’t be able to do it via the block editor directly.

If you have some CSS know how, you might also already think about using some “after:” or “before:” modifications to get it going. So, to have the link in place, there’s one module, that is new to WordPress 6, it’s the “read more”. The next thing I change, is the size of the text and the headline type (in my case a h4). I had to reset the size, as I don’t like too many custom values:

For styling purposes, I could continue in the editor and style some more elements. But as I didn’t define basic things, such as a global typography or colors, I prefer a centralized way, to not mess up every single page in a different way.

So, let’s look at the file structure.

Block Based Themes – file structure

Let’s assume I want to continue with my little loop element or my homepage. Therefore, I would have a look at the code being generated:

Screenshot of code structure

For the spacing in the loop, I could see a variable being defined for the gap, called “—wp—style—block-gap”. Also, the Code structure reminds a bit more to elementor, as we have some weird numbers with wp-container-NUMBER and so on… so let’s look at the files.

Looking at the files, one would assume to look for the variable in the styles.css; but it’s not. The styles.css is quite empty. Only basic descriptions are included to show in your themes folder.

File structure of a FSE Block theme

The Theme.JSON file

This is the new home of the magic. Opening it with some code editor such as visual studio code, you could search the file. The file being generated is empty. mostly we have spacers. Searching for gap, I end up finding the item “Blockgap”.

Changing the value to 10em, leads to this result (I uploaded the JSON file again and have overwritten the existing one!):

theme.json quick edit
preview of changes

It’s working. So let’s look at the magic of this new file and add some colors and typography! First get rid of the test we did again and start at the top.

Now, we reached the moment, the other Theme generator “ThemeGen.App” gets quite useful, because there you have a visual interface for modifying the values in the JSON file, you could copy from. So, feel free to use it if you want as a supporting tool!

In the opened theme.json, I would first recommend to integrate following lines right after the first bracket (on top of the value "version"):

"$schema": "https://schemas.wp.org/trunk/theme.json",

Don’t forget the comma!

By including this line, your program kind of knows the overall vocabulary and speaking about Visual studio code, you will get some guidance on the code on available words in namespace.

To get some more details on naming conventions, follow this link.

Colors

First, we add the basic colors. In my case, I add foreground, background, and three others. The naming of the elements is up to you. It’s more important to remember the names. The “slug” name will be important to use these elements as variables later again and should be familiar with anyone who has some experience with WordPress themes.

The variable name of my primary color would be as following:

--wp--preset--color--primary
theme.json quick edit
"color": {
			"palette": [
				{
					"slug": "foreground",
					"color": "#000000",
					"name": "Foreground"
				},
				{
					"slug": "background",
					"color": "#ffffff",
					"name": "Background"
				},
				{
					"slug": "primary",
					"color": "#00A3DA",
					"name": "Primary"
				},
				{
					"slug": "secondary",
					"color": "#FFF038",
					"name": "Secondary"
				},
				{
					"slug": "tertiary",
					"color": "#707070",
					"name": "Tertiary"
				}
			]
		},

The next element I would add are my fonts. In my case I use two variable font sets. The first step is a similar way to the colors, to add them directly to the JSON file:

"fontFamilies": [
				{
					"fontFamily": "\"Inter var\",-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif",
					"name": "Inter Font",
					"slug": "inter-font"
				},
				{
					"fontFamily": "\"Fraunces\", serif",
					"name": "Fraunces Serif",
					"slug": "fraunces-font"
				}
			],

As my fonts are local (and subsetted to get better loading time), we need to place them in the themes folder.

Create a sub folder assets and one for fonts and copy your fonts to the folder. This is the way it should look like:

To assign the fonts, we need to add some information to the code from before; the most important one, is the place, where those fonts are placed:
"fontFamilies": [
				{
					"fontFamily": "\"Inter var\",-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif",
					"name": "Inter Font",
					"slug": "inter-font",
					"fontFace": [
						{
							"fontFamily": "Inter var",
							"fontWeight": "200 900",
							"fontStyle": "normal",
							"fontStretch": "normal",
							"src": [ "file:./assets/fonts/Inter-var.woff2" ]
						}
					]
				},
				{
					"fontFamily": "\"Fraunces\", serif",
					"name": "Fraunces Serif",
					"slug": "fraunces-font",
					"fontFace": [
						{
							"fontFamily": "Fraunces",
							"fontWeight": "300 900",
							"fontStyle": "normal",
							"fontStretch": "normal",
							"src": [ "file:./assets/fonts/Fraunces-latin.woff2" ]
						}
					]
				}
			],

So, now we did some definitions and need the application of the definition in terms of styles. Therefore, scroll down till you find the part “styles”…

This is the place, where you could assign values. To get used to writing with variables, try yourself:

Screenshot from editor, including variables

Remember to always upload your changed JSON file to the server. After refreshing a site on the test system, you could check for the changes. In my case, I see all the applied values from the previous screenshot in the source code of the site now:

Example from the inspector, seeing the styles applied.

If your changes are not applied, check your JSON file. It is very likely, that you missed a comma or some other sign (I also did :-)).

Back in the editor, you will also be able to apply the changed attributes. Such as typography or color… depending on which element you already defined. So on the one shot, you see that I am able to change the font-family (for the body in this case) and the other panel shows my new added theme colors.

new options in editor: typography
new options in editor: theme colors

Till that point, we mainly modified global attributes. To assign dedicated tyles to certain elements, such as headlines, we continue. By the way, that’s a similar process to elementor, if you follow the route in elementor (see picture on the left). In the new WordPress way, doing it in JSON, look for the headline “elements” and add more elements, such as links, headlines (see picture on the right):

options in elementor
applied element styles in JSON file

Step by step, we get closer to the result, I want to achieve. But on the road, the first troubles come up. The first one I had, was the way to integrate a color for an element. You need to get used to the kind of writing of the code.

The other one I couldn’t fix till now is the treatment of the variable font settings; therefore, I would need the property “font-variation-settings”. Let’s say, I put those things to my personal backlog. First work along some pareto principle… strive for an 80% finished look. The last 20% will be a pain anyway and will cost you 80% of the total time… and that’s the reason, why there are experts. Doing a simple blog without special things could be easily done fast.

some more advanced code
Preview of applied styles

Another thing, before I end my first part on FSE Themes here, will be styles for block elements. As you see the theme.json, it’s also possible to add styles for blocks.

Luckily, we have our namespace connected, so we could start typing in the block and get available options you could style. In my case I style the post-date and change the color value, see on the right:

some more advanced code
Preview of applied styles

Finally, in the theme.json you see all the template parts and a spacer for custom Templates. nothing of importance for now.

One last thing that is quite nice. You can export your theme. Therefore, in the editor click on the three dots to the top right and in the following dialogue, you can export your theme (including our newly generated template for the front page and our JSON settings).

As somehow the JSON file is slightly modified, I tend to copy together a new theme to my folder. So, in the downloaded zip, in the templates folder, you find a html file you could add to your current setup and the system will recognize the new theme.

In the next step, I want to go for the templates. How to modify them and when there’s a need to edit them. I also change my header and footer.

If it helps, here's my little theme.json file, I created so far. I didn't fine tune much. To keep you following or to look for errors in your (or my) file, it should help.

Please also use the comment function. I am no WordPress developer, but create around four WordPress Pages a year. So here's another more recent example I did for Mooser Consulting, including Management, Consulting, design and the implementation.

I would be happy about feedback, as it is quite some extensive work to prepare such a tutorial; but hopefully you found some of the answers, you were already looking for. And if you got some tipps for me on working with variable fonts in the JSON document, feel free to help me, otherwise I have to mess around with the styles file.

Here are some recommended sources to keep you going:

If you are one of the block editor haters, explore some magic that could be generated with the editor:

WordPress 6 – FSE Theme building, part 2
Following up my last article outlining some basic principles about the new way to build themes for WordPress

WordPress 6 – FSE Theme building, part 3
This is my third part on how to build themes for WordPress 6. In this case today it’s not only about t