Previewing content changes across multiple site templates

A couple days ago Helen Hou-Sandí live tweeted her first time trying out Gutenberg, the feature plugin for the next generation WordPress editor. One of her tweets stood out to me and started a thread: tl;dr You can use the Customize Posts plugin to add and edit posts in the Customizer and preview your changes—to the title, … Continue reading Previewing content changes across multiple site templates

Customize Snapshots 0.6 Release

Version 0.6 of our Customize Snapshots plugin has been released; it comes packaged with a set of new features that impact the way the plugin empowers more complex editorial and site management workflows. In short, the plugin provides a UI for managing Customizer changesets, including saving changesets as named drafts, scheduling them for publishing, inspecting them in … Continue reading Customize Snapshots 0.6 Release

Adding Meta Fields to a Widget Sidebar Section in the Customizer

On the Post Status Slack, an interesting question was raised by Richard Buff: Another customizer question: I’m trying to add a custom control that’s meant to customize the appearance of a specific widget area (like change the background color). Example: And I can do it, by passing the section id of that particular widget area (“sidebar-widgets-front-page-1”) … Continue reading Adding Meta Fields to a Widget Sidebar Section in the Customizer

Previewing Themes with Adaptive Designs in the Customizer

In WordPress 4.5 the customizer introduced device preview buttons for resizing the window to see what the theme looks like in desktop, tablet, and mobile (see #31195): This feature is specifically intended for themes that implement responsive web design (RWD) that applies the device-specific layouts via CSS media queries. Most themes should take this RWD … Continue reading Previewing Themes with Adaptive Designs in the Customizer

Resetting the Customizer to a Blank Slate

Sometimes it is desirable to be able to load the customizer without any of the panels, sections, controls, or settings that would normally be registered by core, themes, or plugins. For instance, in Customize Posts there is the ability to open the customizer via the “Preview” button from the edit post screen. When the customizer … Continue reading Resetting the Customizer to a Blank Slate

Image Gallery Control for the Customizer

The Customize Image Gallery Control plugin adds a new control type to the customizer: image_gallery. This control populates its associated setting with an array of the selected image (attachment) IDs. What’s Image Gallery Control good for? Currently the customizer provides media controls that only allow one image to be selected. If multiple images are needed, each … Continue reading Image Gallery Control for the Customizer

Dependently-Contextual Customizer Controls

In my previous post I discussed how to get the Customizer preview to navigate to a URL when a section is expanded, where this is basically turning the concept of contextual controls on its head: instead of showing a control/section/panel when navigating to a given URL, focusing on the control/section/panel can cause the relevant URL to be … Continue reading Dependently-Contextual Customizer Controls

Navigating to a URL in the Customizer Preview when a Section is Expanded

On Otto’s What’s new with the Customizer post there’s a long-running comments thread in which a good question was raised by Jascha: with the active callback you can show a section or panel depending on the URL you are looking at. But is it possible the other way around? Showing a different URL depending on … Continue reading Navigating to a URL in the Customizer Preview when a Section is Expanded