Customizing the Future

A presentation at LoopConf in February 2018 in Salt Lake City, UT, USA by Mel Choyce

Slide 1

Slide 1

Title Slide: Customizing the Future

Slide 2

Slide 2

Mel Choyce | @melchoyce

Hey! I’m Mel Choyce. I’m a Product Designer at Automattic.

Slide 3

Slide 3

Customization design lead

I’m also the current Customization design lead for WordPress. This past year, I worked a lot on 4.8, and co-lead the 4.9 release.

Slide 4

Slide 4

Worked on the WordPress.com Customizer

Before that, I also worked on the WordPress.com Customizer, so I’ve been thinking about this topic for a while.

Slide 5

Slide 5

The Past

Before I talk about exciting future possibilities, let’s start by looking back a bit on the history of the Customizer.

Slide 6

Slide 6

WordPress 3.4 “Green”

The Customizer, then known as the Theme Customizer, was released in WordPress 3.4 “Green” in June of 2012.

The new Theme Customizer duplicated some basic site settings like your title and tagline, along with your homepage settings. It also included theme options like header images, background colors, whatever else your theme supported. It brought these features into a live preview context, which was great, because previously you had to toggle back and forth between editing and previewing everything live on your site. For example, you wouldn’t know how your new header image would actually looked until you saved, which obviously isn’t ideal. With the Theme Customizer, you could finally preview those changes before pushing them live.

Slide 7

Slide 7

WordPress 3.9 "Smith"

In 3.9, widget management was added to the Customizer. This was pretty controversial, especially with the insinuation that it would eventually replace the wp-admin widget management screen. Here we are ten releases later with both interfaces still kickin’ around, so I guess that didn’t end up being an issue. I personally really love this feature because it helps streamline the process of building a site in one place, and in general I just find it faster to use.

Slide 8

Slide 8

WordPress 4.3 "Billie"

A couple versions later, menus were added to the Customizer as well. I love this interface way better than the wp-admin one which is sooo slow, so I was really stoked when it came out.

Slide 9

Slide 9

WordPress 4.7 "Vaughan"

At the end of last year, we added a couple new features. First of all, we launched new edit icons to the preview pane of the Customizer. This was a feature I’d worked on with my team at WordPress.com, and after it received some community interest, we proposed it as a core feature. It’s very much a bandaid solution for direct manipulation in the Customizer, but I think it’s been helpful.

Slide 10

Slide 10

WordPress 4.7 "Vaughan" (Slide 2)

We also added a way to create new pages from the Customizer, which is great for when you’re first setting up a site and want to stub out your menu.

Slide 11

Slide 11

WordPress 4.7 "Vaughan" (Slide 3)

Lastly, we added Custom CSS so anyone can customize their site’s styles. This is a feature offered by tons of themes and plugins, so it was a way for us to create a standard way to provide a CSS editor they could hook into or use in place of their home-grown solutions. It’s also a really useful solution for anyone who would normally make a child theme just to add some custom styles.

Slide 12

Slide 12

The Present

This brings us to 2017, and last year’s Customization focus. At the beginning of the year, Matt Mullenweg announced a couple core focuses, one of which being Customization. Weston Ruter and I were named co-leads. We spent the first half of the year focused on low-hanging fruit and minor improvements, and the second half of the year taking a look at some bigger features.

Slide 13

Slide 13

WordPress 4.8 “Evans”

One of the improvements we that shipped in 4.8 was the addition of new media widgets. We had originally conceptualized these as one widget that could do anything, but eventually decided to pivot towards separate widgets for each media type. Not only does this make each individual widget more discoverable, but it’ll be easier for us to make them Gutenberg compatible in the future. We’ll talk a little bit more about Gutenberg later.

Slide 14

Slide 14

WordPress 4.9 "Tipton"

In 4.9, we did an iteration on Menus in the Customizer. We took a look at the flow of creating a new menu, and addressed some usability concerns that kept coming up in both user tests and support requests.

Slide 15

Slide 15

WordPress 4.9 "Tipton" (Slide 2)

We also finally launched a way to browse and install new themes from the Customizer. Previously, you could browse and preview your installed themes, but now you’re able to search through the WordPress.org theme directory. It was another feature aimed at making it easier and faster to set up a new site.

Slide 16

Slide 16

WordPress 4.9 "Tipton" (Slide 3)

Lastly, we created an interface for drafting and scheduling changes directly in the Customizer. This came with a whole slew of additional improvements. You can now share a live preview of your changes with your team or your clients before publishing them. If someone else is working in the Customizer and you start editing the same thing, we lock changes so you can’t accidentally overwrite the other person’s work. We also created a UI for restoring or dismissing autosaved changesets. These features were inspired a lot by the WordPress editor.

This was also fun because it’s maybe one of the first non-controversial features we’ve launched in the Customizer. People were actually looking forward to it, which was pretty nice.

Slide 17

Slide 17

WordPress 4.9 "Tipton" (Slide 4)

We also made a ton of improvements to the code quality and developer experience of building in the Customizer. My co-lead Weston gave a really good talk at WordCamp US last year about building features with JavaSCript that you should check out if you’re interested in learning more. If you like reading documentation, you can check out the post he wrote about the API changes on make.wordpress.org/core.

https://weston.ruter.net/2017/12/11/building-with-javascript-in-the-customizer-at-wcus-2017/ https://make.wordpress.org/core/2017/11/01/improvements-to-the-customize-js-api-in-4-9/

Slide 18

Slide 18

Live preview everything

In the past couple years, the Customizer has really evolved from the "theme customizer,” to more of a framework for live-previewing any change in WordPress. This has been the driving point behind all the recent features we’ve worked on. You shouldn’t be able to make a visual change without previewing it first.

Slide 19

Slide 19

The Future

That brings us to now. What does the future hold in store for the Customizer?

Slide 20

Slide 20

Gutenberg

To understand the future is to first understand Gutenberg, the new editor coming to WordPress later this year.

Slide 21

Slide 21

Everything's a block

The core principle behind Gutenberg is simple: everything’s a block. It’s a complete unification of content types under a single umbrella. Paragraphs? Those are blocks. Images? Blocks. Embeds? Those are blocks, too. Shortcodes? Turn that sucker into a block. One you learn how to work with one block, you know how to work with all blocks.

Slide 22

Slide 22

Blocks have placeholders

Blocks come with placeholders. Placeholders take up physical space within your post and infer the kind of content they accept. For example, an image placeholder block shows an upload button, and a button to open the media library. A text placeholder block shows a writing prompt. It’s a quick way to tell someone, “Hey, you can add this kind of content here. All you need to do is fill in the blanks.”

Slide 23

Slide 23

Directly editable

All blocks are directly editable. You can click into a text block and type, or move blocks around the page with just a tap.

As developers, you can use core patterns to create custom blocks for your clients that are WYSIWYG. This is a huge usability win, and the block possibilities are pretty endless. The… blockabilities? Okay yeah that was pretty bad.

Slide 24

Slide 24

More intuitive for clients and customers

What previously required using complicated markup, shortcodes, or lots of custom fields, becomes easier and more intuitive for your clients and customers. You can create dynamic blocks that automatically show your clients’ content without needing to be directly edited, but maybe provide a couple layout options they can switch between if they wanted to promote something in particular. And you can also add your theme styles and render your site’s layout inside the Editor. That means THEY get a WYSIWYG experience where they can’t accidentally break some markup, like they can with shortcodes, for example. But they CAN easily update text, swap images, reduce the number of columns, etc. That means YOU don’t get frantic 1am phone calls or support tickets after your clients or customers break something by accident.

Slide 25

Slide 25

Content, layout, and design

Okay, so what’s this all mean for Customization?

When you look at it, a website consists of three things: content, layout, and design.

Slide 26

Slide 26

Content = Editor

The first part, content, is handled by the editor. You get some very minor layout and design editing in Gutenberg as well, but it’s currently constrained to your individual post or page.

Slide 27

Slide 27

Layout and Design = Customization

But the layout and design of your whole site? That’s customization. That’s what we’re focusing on next: extending Gutenberg, and the block paradigm, to cover both of these areas.

Slide 28

Slide 28

Layout

Let’s start off by talking a little bit about layout.

Slide 29

Slide 29

Page templates

Page templates in WordPress are currently a disaster. You can’t actually preview them — if you want to change your template, you need to actually update your page before you’re able to see what the new template looks like. Your choice of template doesn’t change how the editor appears, either. It’s totally mystery meat. But the idea has the potential to be so powerful.

Slide 30

Slide 30

Site Builders

You can see this power in action on other site builders like Weebly, Wix, and GoDaddy’s Site Builder, all of which are light years ahead of us in terms of site building usability.

Slide 31

Slide 31

Site Builders (Slide 2)

It is way easier to fill in placeholders than it is to create something from scratch. It’s something we’ve experimented with on WordPress.com, with various levels of success — but with not nearly as much ease as Gutenberg already has baked in.

Slide 32

Slide 32

Site Builders (Slide 3)

Providing pre-built layouts with placeholders solves a big part of the "I just want it to look like the demo" problem that almost everyone building their own site runs in to.

Slide 33

Slide 33

Page layouts

Imagine you’re a theme developer. Instead of an XML file full of demo content, that your customer will have to manually import and set up themselves, wouldn’t it be great to provide your customers with a template like this, full of placeholder blocks they can easily fill out? Suddenly, the chore of setting up a new website becomes almost effortless — the layout itself guides you through the content you need to put together. Most of this is already possible with Gutenberg. The hard parts are pretty much done. I think it’s amazing how quickly and easily you can set up a new site using curated block layouts in Gutenberg like this.

Slide 34

Slide 34

Page layouts (Slide 2)

You can also do this for Custom Post Types. Here we have a Book post type with a template that takes a title, author, description, and image. Your CPTs can have a unique and structured interface. This functionality has already bene merged — you can make CPT templates right now.

Slide 35

Slide 35

Page layouts (Slide 3)

This is all well and good, but what if you want to offer multiple layouts for people to choose from? You need to have some way to select a layout.

Recently I’ve been working on a flow for selecting and filling out layouts. Now, I need to note that everything I’m about to show you is a draft. It’s untested.

Slide 36

Slide 36

Page layouts (Slide 4)

When you start a new page, you’d have the option of selecting a layout. This layout picker would appear inline, probably the height of your viewport. You’d be presented with all the available page layouts offered by your theme and plugins. If you don’t have any layouts, you’d get a blank editor, like you do now. I’m also thinking it would make sense for developers to be able to set default layouts.

Once you’ve selected a layout, your page is filled with a bunch of placeholders. You can fill them out, delete the ones you don’t need, add new blocks, and rearrange however you’d like. This is a feature you currently see in a lot of page builder themes and plugins, and it’s very handy.

Slide 37

Slide 37

Global blocks

This work is currently focused within the_content(), but what about the rest of your site? What if you want to edit your site title, or tagline, or control the different template parts that you currently need some PHP skills to update?

Slide 38

Slide 38

Global blocks (Slide 2)

We need a set of shared blocks that render template parts. I’ve recently started looking at how these could potentially work in a customization context.

Slide 39

Slide 39

Global blocks (Slide 3)

Slide 40

Slide 40

Global blocks (Slide 4)

A couple weeks ago, some developers got together and built out an experimental spec for these kinds of blocks. Not only did they make a bunch of template blocks, but they also experimented with a way to create new page layouts directly from wp-admin. That’s pretty exciting for the large swaths of WordPress designers and builders that want to create custom sites for their clients, but only know enough PHP to be dangerous. Being able to create new page layouts in the WordPress admin using blocks means they never have to to touch code.

The speed at which this group of developers were able to conceptualize global blocks was pretty ridiculous and makes me feel confident about how fast we’ll be able to build out Customization over the next year. At this past State of the Word, Matt mentioned that with the groundwork for Gutenberg in place, the rest should come pretty quickly — and I didn’t really believe him until I saw these developers spin up a template spec in a couple days. A really great user experience is going to be the main blocker moving forward, not the technology.

Slide 41

Slide 41

Design

That’s it for layout. Lots of movement already. I’m not expecting to have anything user-facing that I’m working on polished for Gutenberg’s initial release in 5.0, but the groundwork will be there so people can experiment.

Let’s talk a bit about design next. When I say “design,” what I mean are the visual styles that make up the look and feel of your site. Your fonts, color scheme, spacing, any ornamentation, etc.

Slide 42

Slide 42

Design in the Customizer

This is the stuff that’s usually handled inside the Customizer. For colors, we have the Iris library, but there’s a ton of UI patterns that theme and plugin developers have to custom code, which makes for an incredibly inconsistent experience.

Slide 43

Slide 43

Design in the Customizer (Slide 2)

These base UI patterns should be handled by WordPress.

Slide 44

Slide 44

Design in Gutenberg

We’re starting to see some design-related UI patterns in Gutenberg, but they’re only currently applied to individual blocks. We still need an approach for handling global site styles.

Slide 45

Slide 45

The future of the Customizer in WordPress

Which leads us to, of course, the future of the Customizer in WordPress. What form it’s going to take, I’m not sure, but here’s an idea of what it could look like to adapt the Customizer to Gutenberg’s design patterns. I picture an interface similar to the current Gutenberg editor, but with a live preview of your site instead of one that’s more abstracted. You could work from a blank template and fill in elements like your logo, navigation menus, and header image, or you could edit an existing site.

This concept is actually quite similar to how the Customizer works now, but unlike the current Customizer, you’d be able to click directly into your page to make adjustments. Instead of having to close the Customizer and open up the page you’re working on to rearrange some elements, you could actually click on a block in the Customizer and move it around.

Slide 46

Slide 46

Global site styles

Also like the current Customizer, you’d be able to control your global site styles. But we’d provide you with a UI pattern library to use, rather than having to struggle through designing and developing your own custom design patterns.

Once again, this is all exploratory. You’re actually the first group of people seeing this. But I wanted to give you all an idea of how global site styles could potentially be edited in the future.

Slide 47

Slide 47

Gutenberg gif

There are still a whole bunch of questions to be answered: whether layout and design, and maybe even content, should be controlled from one central interface, or whether it makes more sense to keep them separated… There’s a bunch of pros and cons to both approaches. For example, one obvious issue to controlling everything in one interface is permissions and user roles. You likely don’t want your clients touching their page layouts or global site styles. But as an admin, it could be really handy to control everything in one central location instead of having to jump in and out of a bunch of different screens. If you have thoughts and opinions on how to approach this, I’d love to hear them.

Slide 48

Slide 48

Examples

There’s a ton of cool customization-related stuff you’ll be able to do in Gutenberg in the future. Some of it’s already possible. I want to show you some inspiration other people and companies are exploring, along with some ideas of my own.

Slide 49

Slide 49

Full-page ad block

I’m sure most of you have seen that pattern where a full-page ad appears on the background of a website. I know Pandora does this a lot. They essentially inject a background image into the page that links off to whatever product or service is being advertised. You can do this in WordPress using custom fields, but like much of WordPress, you suffer from a lack of live previewing. Imagine being able to preview this background ad and tweak it to your liking before pushing it live.

Slide 50

Slide 50

10up Ad block

Speaking of advertising, WordPress Lead Developer Helen Hou-Sandi recently posted an interesting concept for ads on the 10up blog. Her idea is to turn Ad Units into blocks that you could include within your posts or pages in a couple different ways. For example, you could curate your ad placement based on the flow of an article.

https://10up.com/blog/2017/ads-in-a-gutenberg-world/

Slide 51

Slide 51

10up Ad block (Slide 2)

Or, you could have an ad automatically placed in your article after every couple paragraphs.

Slide 52

Slide 52

10up Ad block (Slide 3)

How about a predefined layout that contains ads in specific places? The possibilities are endless, and I think this creates a great opportunity to intersperse ads in a more natural and less intrusive manner than most platforms currently support.

Slide 53

Slide 53

Breaking news block

Let’s say you’re building a news website. Often, you’ll want to showcase some breaking news at the top of your homepage, and you want it easy for your clients to be able to update as articles are written. Imagine turning that into a block. Your clients could have some basic control over the layout of the block, depending on how they want to feature the news, along with the ability to add and remove stories. I know that many agencies have already built custom solutions similar to this using the Customizer — this would be a natural evolution.

Slide 54

Slide 54

Author block

If you build websites for publishers, you’re also probably familiar with showing an author biography at the end of every article on a site. This is a feature begging to be made into a block. Grab your authors’ gravatar and biography from their user profile, add some custom fields, and boom — a dynamic way to showcase authors, which automatically appear on every post.

Slide 55

Slide 55

Gutenberg on HumanMade.com

Matt Haines-Young over at Human Made recently wrote about reimagining the Human Made website using blocks. It’s a great case study that explores both the design and the technical decisions he made. If you’re also starting to think about how you can use Gutenberg for your sites, you should definitely give it a read. Watching him fill out the website in real time in this demo video was super fun.

Since Matt published this, a couple of the pain points he cites in his article have been solved. For example, you can now nest blocks, which has been a highly requested feature since Gutenberg started. This is going to make creating custom websites so much easier and more consistent in the future.

https://humanmade.com/2018/01/22/gutenberg-on-humanmade-com/

Slide 56

Slide 56

Events Calendar block

Recently, the Events Calendar plugin from Modern Tribe has been exploring converting their existing plugin, which relied heavily on metaboxes, to a block-based approach. The resulting concept mirrors the final structure of the event much more than meta boxes could convey. They’ve also identified a number of places where Gutenberg could be improved. This kind of exploration not only is a smart move for companies, but also gives back to the community by putting Gutenberg through its paces.

Worth noting, that much like my own concepts, the Events Calendar designs are subject to change.

Slide 57

Slide 57

Events Calendar block (Slide 2)

https://theeventscalendar.com/going-gutenberg-chapter-ii/

Worth noting, that much like my own concepts, the Events Calendar designs are subject to change.

Slide 58

Slide 58

WooCommerce Product Block

WooCommerce has also been exploring Gutenberg. They have some very early work around product layouts, but have been focusing their attention first on creating a Product Block you can drop onto any page. It’ll make creating custom shop pages super easy. You’ll be able to choose between a bunch of different parameters to make sure you can showcase the products you want, and you have full control over the number of rows and columns and what kind of fields appear. It’s on GitHub, so you can already take it for a spin if you want to see how the Product Block works.

https://github.com/woocommerce/woocommerce-gutenberg-products-block

Slide 59

Slide 59

Tweet

Now, you might be wondering, what can you do to prepare for the future? Carl Hancock offers some great advice — you need to start preparing your themes and plugins for Gutenberg now.

Learn how to make a block. Read the design principles in the documentation. Start looking at how you can covert your widgets and shortcodes to Gutenberg now, not after it merges. You don’t want to get left behind. I personally predict that the early adopters and the products first to market are going to see a lot of financial success. You want to get in on that.

Slide 60

Slide 60

Thanks! ✨