2018 Update on Cello Expressions Projects

Cello Expressions has existed in its current form for nearly six years. After briefly serving as the website for my high school cello quartet, it has been the home of my various digital projects for most of its existence. As this site and its content reach a level of relative digital maturity, it’s time to update the status if its various projects. This post serves a similar purpose to a roadmap combined with an “annual report,” interpreted loosely and without any expectation of becoming annual (I’m in no rush to duplicate the effort that went into the last annual report that I prepared). Read on for insights into the recent work, current status, and future goals for this site and the projects that it hosts (including my WordPress themes and plugins).

Project Updates

Sheet Music Library

The Cello Expressions Sheet Music Library has seen significant growth since migrating to WordPress three years ago. The Sheet Music Library WordPress plugin offers significantly improved content structure, easing navigation and offering better access to audio, video, and imagery for each piece. With the navigational and SEO improvements from the redesign, the sheet music library remains the highest-trafficked portion of Cello Expressions by a large margin (averaging roughly 3,000 visitors monthly).

The Cello Expressions Sheet Music Library home page as of March, 2018.

There are now over 100 compositions and arrangements in the library. I intend to continue including original work only here, with the sheet music library plugin offering a venue for other composers to similarly share their work. A number of pieces are no longer directly available due to  copyright requirements. I do not want to spend time handling copyrights, as the free sheet music format is not easily compatible with requirements that various publishers have. Moving forward, I will generally only arrange pieces that are in the public domain. I will still provide (for free) sheet music for copyrighted pieces on a per-request basis, for groups that acquire the appropriate rights for their usage directly with publishers (by paying them and filling out their required paperwork).

Given the volume of traffic (and demand) for sheet music in the cello ensemble niche, I have considered the possibility of selling some music. This is not an immediate goal; however, building an integration between the sheet music library plugin and an ecommerce plugin (such as WooCommerce) would be beneficial to many, many self-publishing composers. As the plugin FAQ notes, the plugin is designed so that interested individuals or developers could build this integration without my involvement. If that still hasn’t happened in the next couple of years, and I decide to begin charging for some of my (new) sheet music, I may create this integration myself. Given the purpose, this would likely be as a commercial WordPress plugin.

The new “Audio on This Page” playlist widget in the Sheet Music Library.

In the near future, I plan to continue publishing new compositions or arrangements every six months or so. My focus will be on quality over quantity. In addition to reasonable and well-assessed difficulty levels, I want new additions to the library to be particularly well-suited for the medium of cello ensembles. Where possible, new arrangements will have at least a rough recording to accompany the sheet music. I don’t have many technical improvements planned for the library. However, I recently added an “Audio on This Page” feature to the sidebar. Borrowing behavior from the Featured Audio WordPress plugin, this widget automatically assembles an audio playlist of all of the sheet music (with audio) shown in a given view (by composer, genre, instrumentation, etc.).

Photography

I launched my Photography site in 2015 to explore my interests in architecture, construction, landscapes, and landscape architecture. Part photo-blog, part art-project, the site is driven by the immersive experience offered by the Lucidus WordPress theme.

Cello Expressions Photography home page as of March, 2018 (actually a video background, of the USC Village clock tower reflected in the central plaza fountain).

The content has evolved somewhat over time. Most of the content for the first two years became a detailed (and fully-captioned) visual account of the construction progress at USC Village. A few other pieces of content are scattered in with those posts, and have taken greater focus since I graduated from USC (and left Hathaway Dinwiddie Construction) in December 2016. The USC Village series accumulated a substantial following, as it should have, given that it was one of the only public sources of information for the project’s progress. The level of reader engagement through the open comments was encouraging. I’m hoping to continue encouraging viewership by becoming more regular in timing my posts; however, the format of the site does lend itself to, perhaps annual, perusal with an occasional deep dive.

Moving forward, I hope to share more of my work with KPFF through this site. As all of my current projects are under construction, certain particularly-interesting images, and a few more-detailed galleries, will make the cut, along with other relevant content. However, I do not anticipate curating regular, detailed progress posts on any particular projects in the future, similar to the USC Village series. Rather, the primary focus will be on interesting imagery of architecture and structures that I’m involved in, and that I encounter. The theme continues to be quality over quantity–only a small percentage of the photographs that I take make their way to the site, and I will attempt to balance the subject matter between the stated categories where possible.

Ultimately, my objective with Cello Expressions Photography is to provide a collection of visually-stimulating imagery regarding architecture, construction, landscapes, nature, textures, and more; as a stream of content with the ability for viewers to dig into any particularly-interesting elements. I am generally satisfied with the presentation of the content and technical process for managing it. Eventually, I want to build a “full-page galleries” WordPress plugin that provides a more immersive gallery-viewing experience, with some similarities to the Jetpack plugin’s Carousel feature. Otherwise, my focus will be on creating and curating the content (as it should be).

Blog

This blog acts as a catchall for text-heavy content related to my various digital projects. Much of the content has historically been related to WordPress. I do not write nearly often enough to warrant distinct blogs on each of the Cello Expressions sub-sites; hence the mixed subject matter. Hopefully, if you’re reading this, you care enough to skim or skip past any content that isn’t relevant to why you ended up here, and you may even find value in contextualizing the unique perspectives that my diverse interests provide.

Cello Expressions Blog as of March, 2017.

I have made an effort to document most of my major projects here, including a few links to substantial external work. This blog has accumulated a relatively large amount of content. I made the decision, years ago now, to remove some of the oldest, lowest-quality posts (primarily discussing updates to now-closed plugins); retaining the vast majority of the content here, I will do my best to keep a consistent quality standard. I generally aim to only publish content that is worthy of being published online and that provides additional value by being mentioned here, if it supplements another source. Moving forward, I anticipate a continuation of curated update-and-announcement-type posts. However, the primary focus will be on more substantial content. This post essentially documents my goals and expectations for my digital projects over the next several years, for example. Essays with multimedia supplements work particularly well in the traditional “blog” format; as evidenced by my favorite post:

Trust WordPress with Live Preview

I also hope to share more of my (non-professional) architectural work here. I recently published more of the work that I completed during my undergraduate architecture classes. This decision preceded the somewhat-random discovery that this example image from the live preview essay ranks top-five in a google image search for “mixed building floor plan.” I continue to be intrigued by the value that certain projects and ideas happen to provide to certain people looking for specific things. This is a testament to the out-of-the-box SEO power of WordPress, particularly for linked images, which I’ve witnessed in my contributions to sites ranging from USC ASCE to here.

Technically, this blog uses WordPress in the most out-of-the-box form of the Cello Expressions sites, and is resultingly low-maintenance. I recently, finally, added footer widgets to improve more-targeted navigation through what is now a reasonably large collection of posts. Notably, this includes a “Featured Posts” section, which will be used to organize what I see as the most important and highest-quality content that I publish here (using a WordPress menu). I also incorporated a more-comprehensive index of the Cello Expressions projects.

While I still like the artistic statement that the Figure/Ground theme makes, I recognize its functional limitations. Especially as I focus on longer-form and higher-quality content, readability and accessibility should become the primary focus of the design. I have already completed the concept design for the next graphical design for this blog. It will strive to make a similarly-bold artistic statement, but one that better lends itself to content consumption. Given my preference for focusing on content creation, and the disruption of WordPress’ ongoing “Gutenberg” project, a new design will likely launch sometime next year. Figure/Ground will have had an impressive five-year run here by that time, and will continue to be available on WordPress.org.

Halsey Themes

My WordPress themes are no longer part of celloexpressions.com, having moved to http://themes.halsey.co/ last year. However, they are still one of my digital projects. The move to a dedicated site is related to the decision to begin offering commercial themes. I still haven’t formally announced this project. One more theme is under development; once it is complete, there will be a good mix of target user types and I’m planning to market this project more broadly.

Halsey Themes home page as of March, 2018.

My themes focus on simplicity and usability. Prioritizing user-first, out-of-the-box design, their unique and opinionated designs provide visitors with unforgettable experiences. The themes implement core WordPress features along with efficient custom options so that user can get their site up and running, or switch an existing site to one of these themes, with minimal effort.

Starting with the free Figure/Ground blog theme, each theme features a unique design approach. Currently-complete themes include:

    • Lucidus: an innovative photography theme featuring huge, layered (parallax) featured images and stunning post formats
    • Visualize: Perfect for pairing poetry with photography, illustrations with essays, or showcasing mixed-media works, Visualize features a clean and simple design showcasing an elegant two-column layout
    • Classic Artisan: A modern expression of a timeless design—with a traditional layout meeting bold typography, high contrast, and an elegant background, Classical Artisan is ideal for artists, designers, craftspeople, or small businesses
    • Linework: A clean small business theme, Linework is a dynamic, highly-customizable canvas for your content to shine
    • Figure/Ground: An eccentric free blogging theme featuring an animated background graphic and extensive customization options

Each of these themes is now available either free from WordPress.org or for purchase (licensed GPLv2 or later) on Creative Market. Check them out now if you’re interested. These are the types of design-focused themes that cannot be replaced by WordPress’ Gutenberg project. They allow your content to shine regardless of the editing experience and feature unique structural elements that cannot be duplicated with a block-based editor and a generic theme. As Gutenberg moves closer to inclusion in core, I plan to evaluate its integration with each of these themes as a measure of compatibility, contributing issues back to the core project. Look for a formal launch of Halsey Themes in six months or so.

WordPress Plugins

The Cello Expressions WordPress Plugins site largely exists for posterity, as all of its content is pulled directly from WordPress.org. Unfortunately, the “I Make Plugins” plugin that powers it has been partially broken for some time now. This site will likely continue to exist with minimal changes until https://profiles.wordpress.org/ becomes more useful as an index. It does run a fun interpretation of the Twenty Thirteen theme with the Thirteen Colors plugin.

Cello Expressions WordPress Plugins home page as of March 2018.

I currently have 25 plugins available on WordPress.org. A few are formally “abandoned” at this point, while a few others need some updates that I’m planning to make in the next few months. The majority of these plugins do not require regular or extensive maintenance and remain actively supported (indicated by bumps to the “tested up to” field in the readme). I try to answer questions in my plugins’ support forums every few months.

There are several more small plugins on my list to eventually build. Moving forward, my goal is to create plugins with little-to-no UI, and to publish as many plugins as possible that are built for a particular site. As with most of the plugins now in my library, it’s usually not much harder to build custom functionality in a generic way so that your work can be used by anyone needing that functionality, rather than restricting it to your project.

Pseudo-random Experiments

One of my earlier projects, pseudo-random experiments remains a good example of the type of work that I want to share with Cello Expressions. The various experiments hosted here have inspired WordPress themes and created graphics for Chase the Music concerts. I do not have any specific additions planned; however, any new experiments in a similar theme will be added as they’re created.

Pseudo-random Experiments home page as of March 2018.

Interactive Geometry Apps

While this project has not been active since 2013, it is the newest addition to the Cello Expressions site. Originally intended to be published as standalone mobile apps, these projects are pseudo-educational and present advanced geometric concepts in interactive and uniquely digital ways. Future updates are not likely; however, there is useful existing content here that will continue to be presented along with the active Cello Expressions projects.

Interactive Geometry Apps site as of March 2018.

Geometry of the Twisted Savonius Wind Turbine

This is my oldest project, and the only project that predates the Cello Expressions site. Documenting a high school research project, it continues to receive a small, regular stream of traffic. Given the specificity of the research and lack of other online sources offering information on this particular type of wind turbine, it remains an important resource to have an online home (some of the graphics have even made their way to Wikipedia).

Geometry of the Twisted Savonius Wind Turbine site in March 2018.

While the content here doesn’t necessarily fit with the other Cello Expressions content, hosting it on an archived site in this network is the best way to keep it in a stable, secure framework. The last updates were a conversion to WordPress in 2013, and the content was last updated in 2011. No further updates are planned, but the site will continue to remain publicly available.

Infrastructure

After several different iterations in both design and structure, Cello Expressions is now in a reasonably stable and tenable state. Most of the sites run on a WordPress multisite network. These run a mix of custom and public WordPress themes and share a common administration interface. A few projects are on a basic HTML & CSS setup.

The WordPress sites each make use of a single post type. This suggests an alternative implementation where Cello Expressions could run on a single instance of WordPress, organized by post type, rather than several distinct WordPress sites. However, the current strategy facilitates unique graphical designs for each site. Given the diversity in content types and the unique themes and visual customizations provided for each, the multi-site approach has been relatively easy to maintain. In fact, while all of my other complex WordPress projects have used several post types within a single site, the multisite approach is worth considering more often. The “global” navigation bar and the few manual cross-site links would benefit from further iteration on this approach. For example: could the homepage be managed by a cross-site menu that renders dynamic multi-part content instead of being hard-coded?

The HTML & CSS projects are difficult to maintain–for example, the recent transition to SSL rendered them unusable for several months (all of Cello Expressions is now running on SSL (https://), after a series of transitional issues). However, these projects are generally simple, feature hard-coded scripts as content, and are rarely updated. For these reasons, it still seems to be best for these to stay out of WordPress

Other Goals

My extensive contributions to WordPress core are directly related to my goals with Cello Expressions. There is direct overlap in some of the more specific projects, such as default theme and feature plugin development. This blog has content related to WordPress core development. And, most of my contributions have directly improved my ability to publish my various projects online.

Moving forward, I plan to focus more on my own projects, here, than on WordPress core development. For a variety of reasons, I usually do not have enough influence for my contributions to create the level of impact that I’d like to have. I have also repeatedly had bad experiences with the way parts of the project are managed, and how decisions are made. Ultimately, the community seems much more receptive to my efforts as a plugin and theme developer.

As WordPress evolves, I expect to contribute opinions and (maybe) design much more than code. In fact, steps are being taken that will effectively prevent me from contributing code. Given that I now have much less time available for any digital projects, I’d rather focus on my own projects anyway. My perspective as someone that does not use WordPress professionally, and has no interest in doing so, remains generally underrepresented. I hope that other WordPress contributors respect and seek out this perspective more frequently, as it represents the silent majority of end users.

Overall, Cello Expressions has evolved into a stable home for a number of my projects. I might add more projects here in the future. I definitely want to generate more content within the project frameworks that are already established. Technical improvements will also come, albeit at a lower priority. Perhaps the biggest unknown is the level of interaction that my projects will see. Interest expressed via comments (or reviews, or direct messages) is likely to generate more focus on a particular project. That part is up to you.

Customizer Themes in 4.9

WordPress 4.9 includes a new experience for discovering, installing, and previewing themes in the customizer. It is now possible to set up every aspect of a site except for content within the customization workflow with live preview.

I’ve been working on integrating themes with the customizer for several years. Back in 2014, when I was deep into the process of bringing menu management into the customizer, I posted some initial thoughts on the UX and technical prerequisites for an improved themes experience:

Proposed WordPress Customizer Theme-Switching UX

We ended up shipping a minimal interface for switching themes in WordPress 4.2, in early 2015. This grew out of a small weekend project and was severely limited by its restriction to themes that were already installed on the site. While this project was an important step in the development of the customizer, looking back, it should not have been shipped with WordPress core.

In the summer of 2016, as I prepared to take on a larger contributing role for the development of WordPress 4.7, I decided to tackle the more-impactful challenge of theme installation. Many of the technical barriers noted in my original idea post had been resolved. I had also evolved the conceptual interface to a more unified experience. Given the limited volume of contributors and the number of active projects at the time, I spent several weeks designing, developing, and marketing the feature with little help. Despite extensive efforts to follow the “best practice” core development processes, the project lacked community interest and momentum. The feature was merged into WordPress 4.7, only to be painfully removed during beta due to anonymous feedback provided to the release lead. The exact reasons for delaying the feature remain unclear.

I continued pursuing a path forward for a new customize-integrated themes experience. Instantly previewing a new theme on your site and with your content is a powerful concept. I persistently requested additional feedback and rephrased the project goals in an attempt to get enough buy-in to continue improving on the feature. Finally, there was a breakthrough when it became clear that the new user experience could be shipped with a few minor changes to the visual interface.

The broken process of actually finding a WordPress.org theme was stripped down to the bare minimum in the new interface. A future project will focus on improving the way that users browse and find themes in more detail. In WordPress 4.9, users get the best theme-browsing experience currently available, in a drastically improved workflow integrated directly with the process of customizing a site.

For more information, check out my feature post on Make WordPress Core:

A New Themes Experience in the Customizer

Building and Managing Dynamic Multi-part Pages with WordPress

Twenty Seventeen is the first bundled theme to provide a way to create multi-part pages with WordPress, via a front page sections option that features multiple pages on the front page. This is useful for largely single-page sites, but limits the functionality of a front page as a showcase for and gateway to content throughout larger sites.

For sites with more content, and even multiple post types, there isn’t an established pattern for building pages that feature multiple pieces of content. Core archives exist for single taxonomy terms, authors, and post types, but widgets or custom implementations are needed to tie these pieces together. Twenty Fourteen explored strategies for high-content sites by providing numerous widget areas, specialized widgets, and featured content on the front page. The featured content concept provides two major benefits: visitors are exposed to a diverse array of content that would otherwise be buried deeper in a site, and the featured items are updated automatically as new content is created.

WordPress is especially strong in its use of taxonomies to group content together. Extending this functionality one more level to allow terms and posts to be grouped into navigational indexes provides immense power to build complex pages that can be managed within WordPress rather than being defined in code. Featuring taxonomy terms in addition to single posts makes these multi-part pages dynamic, with featured content updating automatically as new items are published.

It can be difficult to visualize the end goal for these types of pages, so here are a few examples of dynamic multi-part pages that should be possible to build and manage with WordPress:

Suggested Solution: Menus

WordPress menus organize navigation to different elements of a site. This is traditionally handled as vertical or horizontal lists, often with hierarchy. Recently, themes have expanded this concept by presenting additional layouts such as social menus that display icons in place of text labels. Some themes show the menu item’s description (a core feature) for additional context.

From a technical perspective, menus have a dedicated post type with a post for each menu item, and a taxonomy term for each menu to group the items together. I became far too familiar with the benefits and challenges of this approach in the year that I spent bringing menu management into the customizer with live preview. The potential to do more with menus struck me as the biggest opportunity for themes (and plugins) to innovate site management without major core changes.

The basic concept of a menu is a way to organize content on a site. And in core, menus can contain items for posts and terms of any type (that supports it), as well as custom links. What if we took this concept a step further, encouraging themes to pull additional elements such as featured images or even post excerpts or content from the objects associated with menus?

While this may seem like an odd proposal if you think of menus as primarily useful for navigation, setting this up in a dynamic way actually preserves the organizational intent by providing navigation to content within the site. The difference is that more context is available for each item, and some items may be presented largely in their entirety without linking off to a single post view, perhaps enabling the option for more of a single page site feel. Taxonomy terms featured in a menu could display the first few posts within them as well as any taxonomy meta and the term description, opening the doors for a deeper showcase of content with a menu and introducing dynamic hierarchy by showing content within terms.

Perhaps the biggest advantage of this approach is that it can be implemented right now with the support of a robust management interface with live preview in WordPress core. You don’t need to build any backend functionality – core provides it already with the ability to select any content from the site to add to a menu, reordering with drag and drop, and live preview of the end product in the customizer out of the box. Everything is easily portable across themes, with menus needing assignment to the appropriate locations but otherwise persisting across theme switches. There are things that core can do to improve the experience further for developers and users, but it works today. If theme developers begin to experiment with using menus to build and manage multi-part pages, users stand to benefit significantly in their ability to control how they present their content.

I should note that this is not “content blocks.” While that term typically refers to improved management of content within a post object, this proposal is intended to improve the way that different pieces of content can be organized.

Proof of Concept: Dynamic Seventeen Theme

To showcase this concept, in both code and a functional theme, I’ve created the Dynamic Seventeen theme. A child theme of Twenty Seventeen, it replaces the static page-based front page sections with dynamic menus-based content. It also adds a page template that turns any page into a dynamic content page, automatically creating an associated menu location for each page with the template. Page templates are not a fantastic experience currently, but this is a good example of how they can provide useful functionality.

Dynamic Seventeen sticks with the base design of Twenty Seventeen, featuring a list-type layout interspersed with large featured images. It also extends the concept of the two column layout by providing the ability to add subtitles or descriptive text to each section, under the post title. Leveraging the menu item description field for this is an example of how menus can provide additional functionality over other approaches without custom admin UI.

The child theme is available on WordPress.org repository. The code is not particularly complex, using a custom nav menu walker to retrieve information about objects associated with menu items and display templates matching the rest of the theme. I encourage theme developers to take this first example and adapt it to their themes, adjusting exactly what content is shown, what content types are supported (for example, not showing custom links), and the markup and styling of the results as needed.

Gif demonstration of setting up the Dynamic Seventeen themr in the customizer with menus.
Dynamic Seventeen dynamic content management with menus demonstration.

The Future of Dynamic Multi-part Pages in WordPress

Dynamic, multi-part pages are an important aspect of many larger sites because they offer a gateway to a diverse array of content in the site. But if site owners are unable to manage their content without hiring a developer, WordPress is only realistically useful in the long run for businesses with in-house development teams. Empower users to organize and showcase their own content by creating usable interfaces with live preview, allowing them to trust that their changes work as intended.

While the menus approach works without any core changes, there are several things that would make the user experience better for this and other innovative uses of menus:

  • #38957 – Customize Menus: Menu locations should be able to opt-out of menu item types that can be added to associated menus
  • #38956 – Customize Menus: menus assigned to locations with limited depths should not allow deeper depths
  • #18584 – Nav menus need more hooks for extensibility

There is also a core ticket to expand the functionality of static multi-part pages like Twenty Seventeen’s front page. I remain skeptical of this approach because of the significant technical debt and future maintenance associated with the major additions proposed, and the redundancy with the existing functionality of menus. Let’s improve what we have and build on it rather than turning to new features that duplicate functionality and ultimately further fragment the user experience.

Trust WordPress with Live Preview

When most of us walk into a building, we assume that it’s safe. We trust that it’s built to code and structurally sound. And we trust that the engineers and architects behind the building know what they’re doing.

If a room is too hot or cold, bright or dim, spacious and sprawling or tight and cramped, many people are uncomfortable and may even complain. Human comfort is the most important aspect of the design of physical space, yet it is nearly impossible comprehensively assess the experience of a space before it’s built.

The disconnect between designing a space and experiencing the end product is the biggest challenge in the building design industry. Digital products face similar challenges in bridging the gap between designing something and publishing it, but physical constraints pose fewer challenges here. WordPress has evolved to provide the potential to close this gap all the way to an end user managing content, by providing a framework for live previewing changes to a site before publishing them.

To fully understand the significance of live preview in the WordPress context, it is informative to consider examples of similar challenges and solutions in other industries. We’ll start with a few examples before returning to the topic of live preview and WordPress, and examining the importance of trust.

Previews in Structural Engineering

Most people trust structural engineers to design safe buildings and bridges. And engineers work diligently to consider every possible scenario that each structural element and connection may experience. But at the end of the day, most structural engineering problems are ultimately educated guesses.

In structural engineering, the governing equation is design < capacity. In other words, the load on the structure, from its own weight, the weight of its occupants, and environmental forces such as wind, snow, and earthquakes, must be less than the amount of load a given element can support. But both sides of these equations make numerous assumptions. Vertical loads are typically estimated as distributed area loads based on the design usage, while the capacity of a structural element is based on the expected properties of its material and shape. Demand loads are amplified and capacity reduced by safety factors to account for the potential uncertainties in both estimates; these factors of safety help engineers trust their designs despite these uncertainties.

In addition to making significant assumptions at every step of the design process, structural engineers are limited in their ability to preview the performance of a structure before it’s built. Small scale tests can be performed, and newer digital tools can apply known forces, such as historical earthquake data, to digital building models. But it’s impossible to know exactly what forces a structure may encounter throughout its lifetime, or how exactly the structural members will react. At best, structural engineers can be confident in their designs based on the relative safety factors between the estimated demand and capacity of a structure.

Animated gif showing a building frame bent in different vibration modes
Animated modal analysis demonstrating the potential (exaggerated) vibration modes of a building structure during earthquakes. Created with SAP 2000.

I have personal experience in the challenge of previewing the performance of structural designs via my work with concrete canoes. Last year, our team spent three months researching, developing a new design based on theoretical principles, and conducting tests and small scale experiments, to create a new structural design for our concrete canoe. We even built a full-size practice canoe with the new design and tested it in the water before finalizing the design. But despite hundreds of hours of work, our canoe failed during the race competition. We had not considered the ultimate failure mode in our evaluation of structural theory and small scale tests. And despite full scale testing with the practice canoe, this oversight combined with construction variances between the two canoes to result in the failure. Even building and testing a copy of a full structure does not guarantee that the final product will perform as intended, meaning that true previews of structural designs are not possible to create.

Two concrete canoes with three paddlers racing them in the water
USC’s colorful 2016 concrete canoe, That ’70s Canoe in competition at the American Society of Civil Engineers Pacific Southwest Conference, prior to the canoe’s structural failure.

Previewing Architectural Designs

As I mentioned earlier, architects face immense challenges in previewing the experience of the spaces they design. Working with consultants to design every aspect of a space from the shape, layout and dimensions, to the lighting, climate control, and finishes, architects typically draw two-dimensional representations of their designs so that they can be constructed. Technological advances have enabled three-dimensional modeling, from which two-dimensional construction documents are produced, along with more-fully-rendered images that convey the appearance of the finished product.

While construction drawings and renderings provide a visual preview of the appearance of a design, they do not offer a way to experience the space before it’s built. Full-scale mockups of smaller spaces can be built, but they can’t fully represent the context – views, natural lighting, etc. – of the final product. Walkthrough videos rendered from digital models and virtual reality experiences further the ability to visually preview designs, but lack comprehensive consideration of context and environmental comfort factors.

As building information modeling (BIM) evolves, the building design industry will continue to work toward an ability to preview designs as accurately as possible before they’re built. But the biggest challenge is the effort required to preview changes to a design. Current standard procedures for producing high-quality renderings can take weeks and thousands of dollars to produce updated images to reflect design adjustments. Changes can’t be previewed live, maintaining a disconnect between the design process and the finished product.

Live Previewing Music Compositions

Music composition and the design of aural space present similar challenges to the design of physical space. However, with music, every performance and recording will be different. Each group of musicians will interpret the music in their unique way, and the acoustics of the space they perform in will drastically influence their sound. These differences are actually welcomed by musicians, as every performance of a piece is unique.

Despite these challenges, composers have the closest thing to live preview of the examples I’m presenting here, via music notation software. Modern notation software, which typesets music much like Word does for text documents, typically has the ability to play music back after it’s written. Much of this already happens within a composer’s head, or as a piece is composed at the piano or another instrument; the playback functionality is a way to validate that everything comes together as it’s intended. A composer can change a note and immediately play back any part of the piece as needed to evaluate the impact of the change in context. Here’s an example of how this playback sounds, via a woodwind quintet I wrote last year:

Of course, this nearly-live preview is quite helpful but leaves a lot to be desired. Compare it to the following recording from a reading session. There are of course mistakes as it’s a first reading, not a performance. But the music really comes to life with the complex textures interwoven between the different instruments combined with the interpretations of the musicians:

With no two performances identical, the ability to fully preview a work before it’s first performed is limited. But composers can preview their work with a high degree of accuracy via digital playback, in an experience that’s almost live and ultimately does an excellent job facilitating the creative process. Live preview provides composers with instant validation that their ideas are correctly represented in a written piece, building trust that the work will be performed largely as intended.

Live Previewing Digital Publications

Working our way back to WordPress, let’s look at what’s possible with digital works. Many programs enable content to be created and previewed simultaneously by presenting an interface where content elements are directly editable. PowerPoints, PhotoShop projects, and even (to a high degree) Excel spreadsheets offer a preview of the final product as you build it. Other software for creating digital content has (sometimes necessary) disconnects between making changes and previewing the results – video and audio editing software, or things that can’t be immediately rendered such as sharelatex.com show how disruptive this can be to an end user.

Despite technological challenges, most publications intended to be distributed digitally should be able to be previewed live as they’re created. Considering a diverse array of content types on the web and elsewhere, this can certainly be challenging but is possible. Physical constraints such as the context of a particular building site, musicians’ unique interpretations of a piece, or fundamental uncertainty in the estimation of structural demands and load capacity do not apply to most digital works. In designing digital interfaces, software used to publish and distribute content should prioritize providing users with a live preview of changes as they’re made, at the expense of potential technical complexity, because live preview builds user trust in their work.

History of Live Preview with WordPress

As a platform whose goal is to democratize publishing, live preview is imperative to the usability of WordPress. Back in WordPress 3.4, a first attempt to incorporate this functionality was introduced with the theme customizer, Over time this evolved to support widgets (3.9), strategically expand in scope to become a framework for live-previewing any change to a site (4.0), support menu management (4.3), add selective refresh and device preview (4.5), and continue expanding its capabilities as a framework for live preview in 4.7. User trust is the core goal in providing live previews in WordPress.

The WordPress editor has also evolved to leverage live preview (as long as themes provide editor styles), with inline media/shortcode previews helping users trust that pasting a link on its own line creates an embed, for example. The biggest problem here is that the content is taken out of context, making it difficult to accurately preview the results. Opening a static preview in a separate window is the unfortunate current solution, creating an unnecessary disconnect between the writing and previewing processes. Bringing these together in a unified live preview experience would allow users to trust that their content will display perfectly, helping to stimulate their creative process as they publish content with WordPress.

Themes and plugins can extend the core frameworks for live preview that exist currently in WordPress. Implementing features like selective refresh in the customizer is critical for ensuring that the preview is as fast and preserves as much context as possible. Themes and plugins can also leverage live preview for managing dynamic portions of complex sites, extending menus or widgets to control the content featured on a page, for example. These implementations could eventually lead to improved core functionality for site management or even more direct site building with live preview.

Future Potential

As live preview becomes more integrated into the everyday workflow of publishing content with WordPress, users will become ever more confident in the publishing process. Trusting that the end product will match what you’re creating as you make it offers a faster workflow for everyone and improves the quality of content published with WordPress.

There are many ways to expand the scope of live preview in core, plugins, and themes. I see the most substantial potential in content editing – integrating it with the functionality currently in the “customizer” to offer a unified interface for live-preivewing most aspects of a site as users build content. This will surely take substantial effort from core contributors but if more volunteers continue stepping forward to contribute, we could conceivably see content editing with live preview in core within the next year.

Themes and plugins should also continue expanding their use of live preview as a mechanism for managing their functionality. Custom sites with complex frontends are great places to implement live preview – give your users confidence to manage their own content by letting them do so with the context of live preview.

In closing, I want to highlight that the customizer is WordPress’ framework for live-previewing any change to a site. With over four years of development to date, the customize API is already the easiest and most powerful way for developers to extend WordPress, and it’s getting even better with every release. And it supports live preview for any option. Let’s build on that framework, rethinking elements (such as the interface) that should be improved, to make WordPress better for everyone that uses it. With live preview, users can truly trust WordPress.

The Customizer is the Future for Themes and Theme Options

There has been a lot of backlash from the WordPress community recently over the theme review team’s decision to require theme options to be implemented in the Customizer. But this decision really is in everyone’s best interest.

WordPress 4.2 shipped with the ability to switch themes in the Customizer. When theme-installation is incorporated in a future release, the entire theme selection and customization process will be streamlined to a seamless workflow in which the user never enters the WordPress admin. This functionality is specifically targeted to users that leverage free WordPress.org themes, so it just makes sense for all themes hosted there to be Customizer-optimized. But the real win is the ability to live-preview changes before publishing them. With the Customizer, users know exactly what their site will look like when they publish their changes, a critical feature for anyone who cares what their site looks like when it’s publicly available.

Many people have been critical of the user-oriented nature of the Customizer. But its power is much stronger than most realize; one of my favorite use-cases for the customizer is custom CSS. This is the easiest way for users who want to go further to get into coding and offers a seamless experience that is infinitely better than the easy-to-kill-your-site-or-lose-your-changes-with code editor in the admin. In fact, I’d love to see a customizer-based custom CSS functionality in core as a replacement for the code editor, although I have a feeling that proposal may be too political to advance to an implementation. Bottom line, the customizer lowers the barrier to entry into WordPress development, contrary to many people’s thinking.

Yes, free themes requiring use of the Customizer will lead to a similar movement for client themes and premium themes. And that’s okay. In fact, by having everyone using the same underlying framework, users know where to look for options and have the confidence that live previewing provides. And WordPress will provide a more consistent visual experience for users as well.

You can really build any functionality into the Customizer. Theme-switching, widgets, and menus were all built as plugins first and continue to use the publicly available customizer API to run. So if you must, you can still create ridiculously complicated UI elements that no one will be able to figure out how to use, but you really don’t need to.

And complaints about the amount of screen real estate available and the 300px default width show a lack of creativity and resistance for the sake of resistance to change. Start by removing all of the ads, external links, unnecessary branding, unnecessary options, and general clutter. Make your options self-explanatory – if you need a paragraph to describe what it does, it probably shouldn’t be a user-facing option. Do you still have so much UI that the experience is completely unusable? Try an outside-the-box solution, like utilizing the core media modal (header images and core media controls use it), a custom modal (theme details modal in core), or a slide-out panel (widgets in core and eventually menus in core as well).

No, the customizer isn’t perfect. But it’s time to give it the respect it deserves as a significant part of WordPress. After three years of slow adoption, the theme review team’s decision to enforce its use is a welcome sign for users and a positive decision for the WordPress community as a whole. I’m excited to see what developers do with the Customizer’s amazingly powerful API and what core contributors come up with to improve its design and usability.

Proposed WordPress Customizer Theme-Switching UX

This is a proposal for how theme-switching and theme-installation could be incorporated into WordPress’ Customizer. This will eventually be attempted in some form as a feature-plugin to later be merged into WordPress core. The goal is to soften the distinction between themes and theme options and to make theme switching a fast, streamlined experience built-in with other Customization options in a unified interface.

Themes is a panel, but with backwards-sliding, coming in from the left instead of the right. This implies a new layer of hierarchy above the top-level controls. Switching contexts to the theme-browser is just like switching contexts to a panel, but to exit the themes context, you select a theme. The currently active/currently previewed theme is selected and has an arrow back to the right, to slide back to the top-level controls. All of this sliding can also be triggered by swiping on touch devices.

When a different theme is selected from the theme browser, it instantly slides back to the main panel of top-level controls, but now reflects the controls available in the new theme. This is accomplished by rendering the controls specific to the new theme via ajax and the new customizer sections/panels JS API, and then deleting the controls that were specific to the old theme. This should be doable in a back-compatible way by working some trickery with the existing customizer APIs, caching stuff, and/or leveraging WP-API.

The preview would instantly need to switch to a loading indicator until the front-end re-rendered with the new theme, but that shouldn’t take too long and is unavoidable regardless of the implementation here.

In the theme browser, the add-new-theme functionality would be present via a + new theme tile matching the one in the current interface, and bring up a modal containing the 3.9 pieces of THX. From there, the theme-installer previewer (also containing the theme details) would need to either remain in the (almost-full-screen) modal or open in a new tab that closed on install/close-button-click (or, do a full-screen iframe on top of the customizer and modal with the theme-install-preview, although that might get a bit crazy).

We would need a solution for unsaved changes in previewed themes that are not activated, as theme-specific controls are hidden/removed when previewing another theme.

Prerequisites:

  • JS API for adding and deleting panels, sections, settings, and controls, to complement the existing controls API.
  • Distinction/ability to save changes without publishing and/or the ability to save without activating a new theme. Although, not distinguishing between saving and saving and activating would probably make more sense here.

WordPress 4.0 Customizer API Improvements

I cross-posted much of this post to Make WordPress Core before WordPress 4.0 Beta 1. I’ll be updating this version with more examples throughout the beta period.

WordPress 4.0 features several new additions to the Customizer API (see also Theme Customization API). In this post, I’ll discuss the improvements in detail.

Customizer Panels

The Customizer now includes a new way to group options together: panels. Just like a section is a container for controls, a panel is a container for sections. This was implemented in #27406. In WordPress Core, widget management in the customizer has been consolidated into the “Widgets” panel. Instead of having as many sections as there are widget areas making a mess out of the customization experience, only one widgets section appears alongside the other customizer sections. But when you select it, rather then sliding down like regular sections, it slides over to reveal a new context for the entire customizer controls area. My Menu Customizer project also relies on this new panels functionality, as all menus can be consolidated into one panel. But themes and/or plugins with extensive options may also wish to create their own panels to better organize their controls, so we built an API for customizer panels. The Panels API is easy-to-use and works almost identically to the existing customizer section API. Add a panel with the following, within the customize_register action:

$wp_customize->add_panel( 'panel_id', array(
	'priority' => 10,
	'capability' => 'edit_theme_options',
	'theme_supports' => '',
	'title' => '',
	'description' => '',
) );

As always, only use the arguments where you aren’t using the default values. Note that the panel will not be displayed unless sections are assigned to it. To add a section to a panel, just use the panel id for the new panel argument:

$wp_customize->add_section( 'section_id', array(
	'priority' => 10,
	'capability' => 'edit_theme_options',
	'theme_supports' => '',
	'title' => '',
	'description' => '',
	'panel' => 'panel_id',
) );

You may notice that $wp_customize->add_panel and $wp_customize->add_section have the same arguments (other than panel, of course). This is because panels are a special type of section; technically speaking, WP_Customize_Panel extends WP_Customize_Section. Your sections are backwards-compatible: you can add the panel argument to existing sections without issues. However, you do need to check for the existence of WP_Customize_Manager->add_panel() if you’re maintaining pre-4.0 compatibility. As with Customizer Sections, you can access and modify Panels via:

  • $wp_customize->get_panel( $id );
  • $wp_customize->remove_panel( $id );

New Built-in Customizer Controls

WordPress core now provides support for a much wider array of Customizer controls. Implemented in #28477, these changes eliminate the need to create custom controls for most common use cases. The textarea type is now supported in core. For any type of input that uses an input element, you can simply specify the type attribute using the type parameter of $wp_customize->add_control(). Here’s an example:

$wp_customize->add_control( 'setting_id', array(
	'type' => 'url',
	'priority' => 10,
	'section' => 'title_tagline',
	'label' => 'URL Field',
) );

Which results in the following markup in the Customizer:

<li id="customize-control-setting_id" class="customize-control customize-control-url">
<label>
<span class="customize-control-title">URL Field</span>
<input type="url" value="" data-customize-setting-link="setting_id">
</label>
</li>

This is pretty powerful, as you can now use the built-in WP_Customize_Control for most common use-cases rather than creating a custom control. But what about input types like number and range that require additional attributes like min, max, and step?

New Built-in Customizer Control Parameters

First of all, all of the built-in Customizer controls (including the custom controls such as WP_Customizer_Color_Control) now support descriptions, just like Customizer sections have descriptions (see #27981). This was much-needed and allows for inline help text at the control level. More interestingly, to complement the new support for arbitrary input types, a new input_attrs parameter allows you to add attributes to the input element (also implemented in #28477). This extends beyond just using min, max, and step for number and range, to the ability to add custom classes, placeholders, the pattern attribute, and anything else you need to the input element. Here’s an example:

$wp_customize->add_control( 'setting_id', array(
	'type' => 'range',
	'priority' => 10,
	'section' => 'title_tagline',
	'label' => 'Range',
	'description' => 'This is the range control description.',
	'input_attrs' => array(
		'min' => 0,
		'max' => 10,
		'step' => 2,
		'class' => 'test-class test',
		'style' => 'color: #0a0',
	),
) );

Which results in the following markup in the Customizer:

<li id="customize-control-setting_id" class="customize-control customize-control-range">
	 <label>
		 <span class="customize-control-title">Range</span>
		 <span class="description customize-control-description">This is the range control description.</span>
 <input type="range" min="0" max="10" step="2" class="test-class test" style="color: #0a0;" value="" data-customize-setting-link="setting_id">
	 </label>
 </li>

Which displays as follows (in Chrome 35): customizer-4.0-range-control

The ability to add classes is particularly useful if you need to target specific controls with CSS or JS, but it doesn’t need to have any special markup. I’m using this in the Menu Customizer for the Menu Name field, which is just an ordinary text control with a special setting type.

Contextual Controls

Customizer controls can now be displayed or hidden based on the Customizer’s preview context. For example, options that are only relevant to the front page can be shown only when the user is previewing their front page in the Customizer (see #27993). This is already implemented in core for Widgets; Widgets have always been contextually faded and shown/hidden based on their visibility in the preview, but this functionality is now built off of the core active_callback API in both PHP and JS. There are three different ways to specify whether a given control should only be displayed in a certain context. The first, and most straightforward, is to use the active_callback argument in $wp_customize->add_control().

$wp_customize->add_control( 'front_page_greeting', array(
	'label'      => __( 'Greeting' ),
	'type' => 'textarea',
	'section' =>
	'title_tagline',
	'active_callback' => 'is_front_page',
) );

Note that you may use either built-in conditional functions or a custom function. If you have a custom control (via a subclass of WP_Customize_Control) and a custom callback function, you can skip the active_callback argument and override the active_callback function instead:

class WP_Greeting_Control extends WP_Customize_Control {
	// ...

	function active_callback() {
		return is_front_page();
	}
}

Finally, the customize_control_active filter will override all of the other active callback options and may be a better solution in certain cases (note that this particular example will be avoidable with future work on expanding the Customizer’s JS API, and does not hide the title_tagline section, only the controls in it):

function titletagline_customize_control_active_filter( $active, $control ) {
	if ( 'title_tagline' === $control->section ) {
		$active = is_front_page();
	}
	return $active;
}
add_filter( 'customize_control_active', 'titletagline_customize_control_active_filter', 10, 2 );

In addition to the PHP API for contextual controls, you can override the control-visibility-toggle function on the JS side. By default, controls will slideUp and slideDown as they become visible or hidden when the Customizer preview is navigated. If you’re familiar with the Customizer control JS API (see wp-admin/js/customize-controls.js, and wp.customize.Control), the Widgets implementation of a custom toggle function is a good example:

api.Widgets.WidgetControl = api.Control.extend({
// ...
   /**
    * Update widget control to indicate whether it is currently rendered.
    *
    * Overrides api.Control.toggle()
    *
    * <a href='http://profiles.wordpress.org/param' class='mention'>@param</a> {Boolean} active
    */
    toggle: function ( active ) {
        this.container.toggleClass( 'widget-rendered', active );
    },
// ...
) };

/**
 * Extends wp.customize.controlConstructor with control constructor for widget_form.
 */
$.extend( api.controlConstructor, {
    widget_form: api.Widgets.WidgetControl,
} );

Changes to the customize_update_ and customize_preview_ Actions

You probably already know that the Customizer supports both option and theme_mod types for settings. But did you know that you can register arbitrary types? Since this is generally undocumented, I’ll show how it works (this has been in place since 3.4):

$wp_customize->add_setting( 'setting_id', array(
	'type' => 'custom_type',
	'capability' => 'edit_theme_options',
	'theme_supports' => '',
	'default' => '',
	'transport' => 'refresh',
	'sanitize_callback' => '',
	'sanitize_js_callback' => '',
) );

There are a few actions that you can use to handle saving and previewing of custom types (option and theme_mod are handled automatically). Namely, customize_update_$type and customize_preview_$type are useful here. Previously, the value of the setting was passed to these actions, but there was no context. In 4.0, via #27979, the WP_Customize_Setting instance is passed to these actions, allowing more advanced saving and previewing operations. Here’s an example from my Menu Customizer project:

function menu_customizer_update_menu_name( $value, $setting ) {
...
	// Update the menu name with the new $value.
	wp_update_nav_menu_object( $setting->menu_id, array( 'menu-name' => trim( esc_html( $value ) ) ) );
}
add_action( 'customize_update_menu_name', 'menu_customizer_update_menu_name' );

This part of the Customizer API is a bit too complex to fully explain here, as most of it already existed, but suffice to say that the addition of the setting instance to these actions greatly expands the possibilities of working with custom setting types in the Customizer.

New “customize” Capability

Note: this API component is coming in 4.0 beta 2.

The Customizer has been decoupled from edit_theme_options in favor of a customize meta capability, which is mapped to edit_theme_options by default. This allows for wider use of the Customizer’s extensive capability-access options, which are built into panels, sections, and settings. Additionally, this makes it possible to allow non-administrators to use the customizer for, for example, customizing posts. This change is an important step to expanding the scope of the Customizer beyond themes. See #28605. To allow users with lower capabilities to access the Customizer, use something like the following:

function allow_users_who_can_edit_posts_to_customize( $caps, $cap, $user_id ) {
        $required_cap = 'edit_posts';
        if ( 'customize' === $cap && user_can( $user_id, $required_cap ) ) {
                $caps = array( $required_cap );
        }
        return $caps;
}
add_filter( 'map_meta_cap', 'allow_users_who_can_edit_posts_to_customize', 10, 3 );

Customizer Conditional Function

The new is_customize_preview() conditional function can be used to check whether the front-end is being displayed in the Customizer. The naming derives from the fact that the term “preview” applies to both theme previews and previewing changes before saving them. See #23509 for some sample use-cases from WordPress.com.

Examples

Look at the Widget Customizer and Menu Customizer code for more examples of many of these features. Please feel free to ask in the comments if you have you questions with any of these implementations; I spent a good amount of time preparing and reviewing the associated patches and soliciting feedback in the process of adding these changes to core.

Use This API for Good, not Evil

These new additions to the Customizer API greatly expand the ability to create intricate options for users. But please don’t forget about WordPress’ core philosophies. So, before you go adding entire panels full of new options, remember to strive for simplicity and design for the majority, even in themes and plugins. These additions make the Customizer better for developers; now, let’s make it as good as it can be for our end-users.

GSoC Menu Customizer Revised Schedule/Scope

Previously: GSoC Project Proposal: WordPress Menu Customizer.

Week 1 – 5/19: Introduce the ability to view all existing menus as customizer sections with menu items as customizer controls.

Week 2 – 5/26: Add the ability to edit menus (change labels, attributes, re-order items), including a temporary solution that includes the screen options found on the existing menus screen. Run user tests on the existing menu management screen to inform UI decisions for the initial iteration, coordinating with the WordPress core UI team.

Week 3 – 6/2: Implement an input-type-agnostic re-ordering mode, merging the existing UIs on the Menus screen and in the Widget Customizer (should particularly help with touch & keyboard input). Implement a version of #27406 into the plugin (pending its completion for core, potentially also assist with the core patch if needed), to maintain 3.9 compatibility. Move all menus (customizer sections) to the menus/navigation super-section, and implement the theme location controls in the new interface. Begin implementing a panel to add new widgets, potentially re-using components from the Widget Customizer’s equivalent UI (and potentially making it more easily re-usable outside of core).

Week 4 – 6/9: Create the ability to add items to menus, utilizing the slide-out panel from the Widget Customizer. For the first iteration, include sections containing pages, custom links, and categories, similar to those on the existing menus page.

Week 5 – 6/16: Second iteration of the add-new interface. Introduce a global search feature, an experimental approach to adding custom links, add all appropriate post types and taxonomies, and create a one-click add/remove menu items mode. Implement any additional ideas for adding items proposed by the WordPress core UI team.

Week 6 – 6/23: Midterm evaluations – critical functionality should be complete (editing & adding to menus, changing menu locations). Publish plugin (with WordPress 3.9 compatibility) on WordPress.org repository to facilitate community testing & feedback. Begin extensive user testing to facilitate further UI iterations. Add ability to create new menus, and delete menus, with the appropriate corresponding menu location UIs adapting accordingly.

Week 7 – 6/30: Address the need to implement screen options into the new menus interface. Work through the list of outstanding issues with the implementation, and begin responding to community feedback. Much of these will likely be UI/UX quirks that come up through the development process and are delayed in favor of completing the basic functionality. Examples could include dealing with deep menu-nesting (sub-menus) within the narrow customize controls area.

Week 8 – 7/7: Implement refinements for simplified use-cases, such as those added in WordPress 3.6 (#23119). Continue addressing bug fixes and enhancements based on community feedback. Add new hooks and create usage examples for them (#18584), if scaling issues can be resolved.

Weeks 9 – 12 – 7/14-8/4: Run user tests on the existing menus screen and the Menu Customizer. Iterate the UI and codebase based on user tests and feedback from WordPress core designers and developers, giving special attention to the experience for new users and a stronger emphasis on the ability to use menus in widget areas. Ensure the code is thoroughly documented and meets all core style guidelines. Test in all supported browsers and devices, with as many themes as possible, and with as many edge-cases as is feasible (ie, massive menus, huge numbers of menus, deep hierarchies, etc.). Fix bugs as they come up. Address whether the functionality is ready for core. If all goes well, consider whether the Menu Customizer could potentially replace the existing menus screen for supported users and develop approaches for user-discovery (for example, deep-linking).

Week 13 – 8/11: Prepare a core patch for the plugin merge, and draft final proposals for inclusion of the feature in core. Final project, as both a functioning plugin and a core patch, should be competed by the firm pencils-down date of 8/18. In the event that the plugin is unlikely to be accepted for core inclusion, continue development of outstanding issues and gathering feedback from the community, with the goal of reaching a good stopping point for the official end of GSoC.