Title: theme-switcher | Make WordPress Core

---

#  Tag Archives: theme-switcher

 [  ](https://profiles.wordpress.org/celloexpressions/) [Nick Halsey](https://profiles.wordpress.org/celloexpressions/)
7:00 pm _on_ October 3, 2016     
Tags: [4.7 ( 124 )](https://make.wordpress.org/core/tag/4-7/),
[4.9 ( 81 )](https://make.wordpress.org/core/tag/4-9/), [customize ( 67 )](https://make.wordpress.org/core/tag/customize/),
[proposal ( 40 )](https://make.wordpress.org/core/tag/proposal/), [shiny-updates ( 19 )](https://make.wordpress.org/core/tag/shiny-updates/),
theme-switcher, [themes ( 43 )](https://make.wordpress.org/core/tag/themes/)   

# 󠀁[Feature Proposal: A New Experience for Discovering, Installing, and Previewing Themes in the Customizer](https://make.wordpress.org/core/2016/10/03/feature-proposal-a-new-experience-for-discovering-installing-and-previewing-themes-in-the-customizer/)󠁿

This is the feature merge _proposal_ for the new themes experience in the customizerCustomizer
Tool built into WordPress core that hooks into most modern themes. You can use it
to preview and modify many of your site’s appearance settings. introduced with [#37661](https://core.trac.wordpress.org/ticket/37661).
Here’s an overview of the current _proposed _UIUI User interface:

[⌊Customizer themes design and user flow mockup⌉⌊Customizer themes design and user
flow mockup⌉[

Customizer themes design and user flow mockup by [@folletto](https://profiles.wordpress.org/folletto/).

A theme is the most fundamental aspect of customizing a site. This project seeks
to unify the theme-browsing and theme-customization experiences by introducing a
comprehensive theme browser and installer directly in the customizer.

[⌊Walkthrough of the latest patch on #37661.⌉⌊Walkthrough of the latest patch on#
37661.⌉[

Walkthrough of the latest patchpatch A special text file that describes changes 
to code, by identifying the files and lines which are added, removed, and altered.
It may also be referred to as a **diff**. A patch can be _applied_ to a codebase
for testing. on [#37661](https://core.trac.wordpress.org/ticket/37661).

## Background & History

The customizer originated as a tool for previewing and customizing themes and as
such, was closely integrated into the theme browsing experience in wp-adminadmin(
and super admin) when it was introduced in WordPress 3.4. The [theme browser](https://make.wordpress.org/core/2013/10/23/thx-presentation/)
and [installer](https://core.trac.wordpress.org/ticket/27055) were rewritten in 
WordPress 3.8 and 3.9, respectively, offering a fast JavaScriptJavaScript JavaScript
or JS is an object-oriented computer programming language commonly used to create
interactive effects within web browsers. WordPress makes extensive use of JS for
a better user experience. While PHP is executed on the server, JS executes within
a user’s browser. [https://www.javascript.com](https://www.javascript.com/)-based
way to explore, install, and switch themes.

Eventually, as the customizer’s role grew to that of [a framework for live-previewing any change to a site](https://make.wordpress.org/core/2014/07/08/customizer-improvements-in-4-0/),
it became apparent that it would benefit from a more direct way to switch themes,
without entering the wp-admin context. The [Customizer Theme Switcher](https://make.wordpress.org/core/2015/01/26/customizer-theme-switcher-update/)
pluginPlugin A plugin is a piece of software containing a group of functions that
can be added to a WordPress website. They can extend functionality or add new features
to your WordPress websites. WordPress plugins are written in the PHP programming
language and integrate seamlessly with WordPress. These can be free in the WordPress.
org Plugin Directory [https://wordpress.org/plugins/](https://wordpress.org/plugins/)
or can be cost-based plugin from a third-party. was created, and after some refinement,
[merged into WordPress 4.2](https://make.wordpress.org/core/2015/02/11/customizer-theme-switcher-feature-plugin-merge-proposal/).
However, while it initially included external links to install themes in the admin,
these were eventually removed due to the jarring experience of unexpectedly leaving
the customizer.

Currently, there is no indication that additional themes can be installed when viewing
available themes in the customizer. For new users, it may take quite a bit of time
to discover the ability to install themes, via wp-admin, or they may give up on 
WordPress before making this discovery. This is a usability dead-end where a user’s
flow is disrupted in the process of discovering, installing, previewing, and activating
themes, both on initial site setup and when considering a redesign.

When the theme switcher plugin was developed, the team made preliminary plans for
a theme installation interface as a second phase of the project. Specifically, it
would leave the “preview” context of the customizer but retain the same identity
in the user experience. [@folletto](https://profiles.wordpress.org/folletto/) helped
develop this initial concept in early 2015.

## Technical Constraints & Requirements

There have been several technical limitations preventing theme installation in the
customizer from being addressed previously. Most notably, such an interface requires“
shiny” ajax-based theme installation, updates, and deletion, so that the user flow
can persistently stay in the customizer themes interface rather than jumping to 
separate “installing” views. This is now possible with [phase 2 of “Shiny Updates”](https://make.wordpress.org/core/2016/06/02/proposal-more-shiny-updates/)
in WordPress 4.6. Additionally, expansions of the [customizer JavaScript](https://make.wordpress.org/core/2014/10/27/toward-a-complete-javascript-api-for-the-customizer/)
and [JS-templated controls](https://make.wordpress.org/core/2014/11/17/jsunderscore-template-rendered-custom-customizer-controls-in-wordpress-4-1/)
APIs to better support dynamically-registered controls were needed to support theme
installation within the customizer framework, and [these were fully fleshed out](https://make.wordpress.org/core/2015/07/27/changes-to-customizer-panels-and-sections-in-4-3/)
for the customizer [menus interface introduced](https://make.wordpress.org/core/2015/06/03/feature-plugin-merge-proposal-menu-customizer/)
in WordPress 4.3. With these technical constraints eliminated, theme installation
in the customizer is now possible without additional significant improvements to
the underlying themes or customizer APIs.

The customizer must currently be completely reloaded from PHPPHP The web scripting
language in which WordPress is primarily architected. WordPress requires PHP 7.4
or higher to preview a different theme. To perform a theme switch without a reload,
theme-defined settings, sections, and controls would need to be updated dynamically
with JavaScript. While the customizer internals have been working toward making 
this possible for some time, significant work remains to make inline theme switches
possible. Therefore, changes to this part of the theme-switching workflow are out
of scope for the current project, which focuses on the user-facing flow.

The biggest usability blockBlock Block is the abstract term used to describe units
of markup that, composed together, form the content or layout of a webpage using
the WordPress editor. The idea combines concepts of what in the past may have achieved
with shortcodes, custom HTML, and embed discovery into a single consistent API and
user experience. that this limitation causes is that unsaved changes are lost when
the theme is switched. Unsaved changes are currently handled by prompting users 
with an are-you-sure notice in the browser before making the switch. Unfortunately,
limitations in JavaScript require the loading indicator to be hidden after the user
decides to stay on the page or to continue to the new theme, causing confusion. 
In the new interface, this is further mitigated by displaying a warning that there
are unsaved changes, with an inline button to save and publish them, at the top 
of the interface. With [customize changesets (transactions)](https://make.wordpress.org/core/2015/01/26/customizer-transactions-proposal/)(#)
30937, a “save draft” option could also become possible in the future, allowing 
changes to be saved (potentially automatically) without being published between 
theme previews.

## Previewing Themes

One of the biggest challenges with theme installation in wp-admin, and opportunities
in the customizer, is previewing themes. Currently, a customizer-like frame displays
a preview hosted on WordPress.orgWordPress.org The community site where WordPress
code is created and shared by the users. This is where you can download the source
code for WordPress core, plugins and themes as well as the central location for 
community conversations and organization. [https://wordpress.org/](https://wordpress.org/),
with limited content. Rather than opening this potentially-disorienting similar 
but different interface, the proposed flow de-emphasizes the distinction between
installed and available themes. The primary action for available themes is now “
Install & Preview”, which installs the theme and live previews it in one step.

Users can now see any theme on their site with their content and play with its options
in the customizer in one click. If they decide it’s the wrong theme for their site,
the themes panel can be quickly reopened and another theme selected and previewed
with no harm done. A secondary action allows themes to be installed without instantly
previewing, so that the installed themes tab can become a personal theme library
of sorts, where users can save themes that they might want to try on their site.
Installed themes being a filterFilter Filters are one of the two types of Hooks 
[https://codex.wordpress.org/Plugin_API/Hooks](https://codex.wordpress.org/Plugin_API/Hooks).
They provide a way for functions to modify data of other functions. They are the
counterpart to Actions. Unlike Actions, filters are meant to work in an isolated
manner, and should never have side effects such as affecting global variables and
output. along with the available theme headings unifies the previously-disorienting
separation of themes and add-new themes on separate screens, with confusingly-separate
search and headerHeader The header of your site is typically the first thing people
will experience. The masthead or header art located across the top of your page 
is part of the look and feel of your website. It can influence a visitor’s opinion
about your content and you/ your organization’s brand. It may also look different
on different screen sizes. (add new/upload theme) functionality.

## Proposed Themes Interface

Due to the tight integration with the existing system, with the existing theme control
and section as well as internal elements in the customizer manager and theme details
template requiring moderate modifications, this project was implemented as a patch
and cannot be reasonably converted into a plugin and back. The patch has been [available on trac](https://core.trac.wordpress.org/ticket/37661)
for six+ weeks, with iterations continuing to improve and polish the new experience.

The technical implementation continues adapting the concepts present in the backbone.
js-based themes experience in wp-admin to leverage the customizer APIAPI An API 
or Application Programming Interface is a software intermediary that allows programs
to interact with each other and share data in limited, clearly defined ways.. With
the themes experience natively built on the customizer framework, it should be much
easier for developers to improve and maintain the coreCore Core is the set of software
required to run WordPress. The Core Development Team builds WordPress. experience
in the future as well as extending the core experience in a structured way.

A few highlights of the proposed details:

 * Installed themes are no longer loaded every time the customizer is opened, resulting
   in potentially significant performance improvements by only calling wp_prepare_themes_for_js()
   when needed. This also allows themes in the customizer to be fully disabled with
   remove_panel( 'themes' ).
 * The themes experience is unchanged on the top level of the customizer, but selecting
   the change theme button now opens a panel that fills the entire screen, as the
   preview is not relevant when considering a theme change.
 * The UI diverges somewhat from what is found in the theme installer in wp-admin(
   which will remain), particularly around the filters.
 * The theme details view is unified between installed and available themes; clicking
   on a screenshot opens the details view to match the admin UI.
 * Primary buttons are used where clicking them takes you away from the current 
   page (ie, for previews); secondary buttons are used elsewhere.
 * The loading strategy attempts to balance performance with wait time by loading
   theme data from Ajax in large batches (100 themes) and following up by rendering
   screenshots as they become visible (as the existing interface does).

## Usability Testing

Four usability tests have been conducted so far. The full test screencasts are [available on Make/Design](https://make.wordpress.org/design/2016/09/23/user-testing-the-new-customizer-themes-experience/),
alongside key takeaways. These tests expose a lot of largely-known issues with themes
and the customizer in general, but did not reveal any significant issues with the
proposed new theme browser. Because the tests were conducted in-person with a limited
set of volunteers, additional testing with a broader user base would be ideal.

There has been design feedback since the user testing was conducted, resulting in
some significant changes. [@karmatosed](https://profiles.wordpress.org/karmatosed/)
has volunteered to coordinate additional testing in the next week to verify that
the changes haven’t introduced usability regressions, and to test with a broader
audience. Check out the [call for user testing on make/design ](https://make.wordpress.org/design/2016/10/03/help-user-test-the-new-themes-in-customizer-experience/)
to help out here.

A visual record on a phone of the revised design has been [posted on make/flow](https://make.wordpress.org/flow/2016/10/01/customizer-browse-install-preview-themes-on-mobile/).

## Extensibility

Because the new interface is built entirely on the customizer API, third-party plugins
should now be able to integrate much more easily. This means that other theme marketplaces(
including commercial themes) could realistically be browsed (and maybe even installed)
from within WordPress, while leveraging the core UI exactly.

The presentational flexibility is available via the customizer API (with custom 
theme sections for other theme sources, and theme controls for individual themes),
but there are likely some gaps in the ability to do this seamlessly in the internals.
If anyone is interested in building this sort of functionality, please evaluate 
whether any additional hooksHooks In WordPress theme and development, hooks are 
functions that can be applied to an action or a Filter in WordPress. Actions are
functions performed when a certain event occurs in WordPress. Filters allow you 
to modify certain functions. Arguments used to hook both filters and actions look
the same. are needed so that they can launch alongside the new feature.

## Review and Approval

In addition to a general core approval of this proposal, the following sign-offs
are required before the feature could be approved for merge, based on the applicable
elements of [this list](https://make.wordpress.org/core/handbook/about/release-cycle/features-as-plugins/#feature-plugin-merge-criteria):

 * Flow (and mobile) review (see also [an initial post](https://make.wordpress.org/flow/2016/10/01/customizer-browse-install-preview-themes-on-mobile/))
 * Docs review
 * Security audit
 * Polyglots/i18ni18n Internationalization, or the act of writing and preparing 
   code to be fully translatable into other languages. Also see [localization](https://make.wordpress.org/core/tag/theme-switcher/?output_format=md#l10n).
   Often written with a lowercase i so it is not confused with a lowercase L or 
   the numeral 1. Often an acquired skill. review
 * Design/UXUX User experience review – tentative approval has been provided from
   [@karmatosed](https://profiles.wordpress.org/karmatosed/) and [@folletto](https://profiles.wordpress.org/folletto/)(
   with additional input from others in last week’s design meeting) with an expectation
   that minor adjustments will continue to be required. General design feedback 
   is still welcome, but major changes are unlikely to be feasible at this point.
 * AccessibilityAccessibility Accessibility (commonly shortened to a11y) refers 
   to the design of products, devices, services, or environments for people with
   disabilities. The concept of accessible design ensures both “direct access” (
   i.e. unassisted) and “indirect access” meaning compatibility with a person’s 
   assistive technology (for example, computer screen readers). (https://en.wikipedia.
   org/wiki/Accessibility) review – [@afercia](https://profiles.wordpress.org/afercia/)
   completed an initial review, with the issues fixed in a subsequent patch. A comprehensive
   final review would be a good idea as well, since there have been significant 
   design changes.
 * Code review – to be handled by [@westonruter](https://profiles.wordpress.org/westonruter/)
   once the patch is otherwise deemed “ready” based on review from other teams.

To test, update to latest trunktrunk A directory in Subversion containing the latest
development code in preparation for the next major release cycle. If you are running"
trunk", then you are on the latest revision. and apply the latest patch on [#37661](https://core.trac.wordpress.org/ticket/37661).
On your test site, open the customizer and “change” the theme. Try out the various
filters, browse themes, and install and preview them. Also test the inline update
and deletion functionality.

To meet the feature merge deadline for 4.7 (10/19), reviews from various teams and
any corresponding iterations need to be completed by October 12th, leaving a week
for final code review and commit. General feedback and specific reviews and action
items should be provided as comments on this post.

---

Update: [this feature was merged in 4.9](https://make.wordpress.org/core/2017/10/24/a-new-themes-experience-in-the-customizer/).

[#4-7](https://make.wordpress.org/core/tag/4-7/), [#4-9](https://make.wordpress.org/core/tag/4-9/),
[#customize](https://make.wordpress.org/core/tag/customize/), [#proposal](https://make.wordpress.org/core/tag/proposal/),
[#shiny-updates](https://make.wordpress.org/core/tag/shiny-updates/), [#theme-switcher](https://make.wordpress.org/core/tag/theme-switcher/),
[#themes](https://make.wordpress.org/core/tag/themes/)

 [  ](https://profiles.wordpress.org/celloexpressions/) [Nick Halsey](https://profiles.wordpress.org/celloexpressions/)
11:00 pm _on_ February 11, 2015     
Tags: [4.2 ( 67 )](https://make.wordpress.org/core/tag/4-2/),
[customize ( 67 )](https://make.wordpress.org/core/tag/customize/), [feature plugins ( 122 )](https://make.wordpress.org/core/tag/feature-plugins/),
[merge ( 11 )](https://make.wordpress.org/core/tag/merge/), [proposal ( 40 )](https://make.wordpress.org/core/tag/proposal/),
theme-switcher, [themes ( 43 )](https://make.wordpress.org/core/tag/themes/)   

# 󠀁[Customizer Theme Switcher Feature Plugin Merge Proposal](https://make.wordpress.org/core/2015/02/11/customizer-theme-switcher-feature-plugin-merge-proposal/)󠁿

Ticketticket Created for both bug reports and feature development on the bug tracker.:
[#31303](https://core.trac.wordpress.org/ticket/31303)

[Customizer Theme Switcher](https://wordpress.org/plugins/customizer-theme-switcher)
brings theme-browsing and theme-switching functionality into the CustomizerCustomizer
Tool built into WordPress core that hooks into most modern themes. You can use it
to preview and modify many of your site’s appearance settings.. By integrating themes
directly into the Customizer, live-previewing workflows are greatly simplified, 
and the relationship between themes and theme/site options is clarified for the 
user.

This pluginPlugin A plugin is a piece of software containing a group of functions
that can be added to a WordPress website. They can extend functionality or add new
features to your WordPress websites. WordPress plugins are written in the PHP programming
language and integrate seamlessly with WordPress. These can be free in the WordPress.
org Plugin Directory [https://wordpress.org/plugins/](https://wordpress.org/plugins/)
or can be cost-based plugin from a third-party. represents a significant step in
moving all “Appearance” functionality into the Customizer, following [Widgets](https://make.wordpress.org/core/2014/01/28/widget-customizer-feature-as-plugin-merge-proposal/).
The future roadmap includes [Menus](https://wordpress.org/plugins/menu-customizer),
Theme-Install, and iterations on widgets that would allow the Customizer to entirely
replace those adminadmin (and super admin) screens for most users. Because the Customizer
Theme Switcher plugin does not address theme-install, the admin page (themes.php)
is fully intended to remain in use for now. We are proposing to redirect the front-
end “Themes” link (in the admin bar) to the Customizer, as was done for widgets 
in 4.1.

### Technical Overview

Customizer Theme Switcher is primarily about adding new UIUI User interface for 
existing functionality using existing APIs, rather than introducing new functionality.
The plugin operates entirely off of the WordPress 4.1 Customizer APIAPI An API or
Application Programming Interface is a software intermediary that allows programs
to interact with each other and share data in limited, clearly defined ways., leveraging
the new JavaScriptJavaScript JavaScript or JS is an object-oriented computer programming
language commonly used to create interactive effects within web browsers. WordPress
makes extensive use of JS for a better user experience. While PHP is executed on
the server, JS executes within a user’s browser. [https://www.javascript.com](https://www.javascript.com/)
API in particular. Themes is a custom section (that acts kind of like a panel). 
Each theme is a custom Customizer control.

The code is heavily Backbone.js-inspired, leveraging JSJS JavaScript, a web scripting
language typically executed in the browser. Often used for advanced user interfaces
and behaviors.-heavy portions of the Customizer API to do things like underscore
JS templates for rendering theme data. Most of the code is directly adapted from
the Backbone-driven themes.php system (and the theme data is retrieved with existing
functions), but things like the search/filterFilter Filters are one of the two types
of Hooks [https://codex.wordpress.org/Plugin_API/Hooks](https://codex.wordpress.org/Plugin_API/Hooks).
They provide a way for functions to modify data of other functions. They are the
counterpart to Actions. Unlike Actions, filters are meant to work in an isolated
manner, and should never have side effects such as affecting global variables and
output. are written from the ground up to leverage the Customizer API (in that case,
conditionally activating/deactivating controls).

In keeping with the goal to avoid back-end functionality changes, theme-switches
are accomplished simply by leveraging the existing ability to pass a theme as a 
URLURL A specific web address of a website or web page on the Internet, such as 
a website’s URL www.wordpress.org query arg when loading the Customizer; ie, the
Customizer is simply reloaded to preview a different theme. Loading overlays are
leveraged to make this process seem more instant. Unrelated 4.2 coreCore Core is
the set of software required to run WordPress. The Core Development Team builds 
WordPress. work around [Customizer Transactions](https://make.wordpress.org/core/2015/01/26/customizer-transactions-proposal/)
could potentially improve how this works.

### Core Changes & Merge Implementation Details

As outlined in the plugin’s readme there are several proposed technical and user-
oriented changes that are best done as core patches (mostly in the merge patchpatch
A special text file that describes changes to code, by identifying the files and
lines which are added, removed, and altered. It may also be referred to as a **diff**.
A patch can be _applied_ to a codebase for testing.):

#### UXUX User experience

 * Remove [#customize](https://make.wordpress.org/core/tag/customize/)-info for 
   theme previews.
 * Change front-end admin bar Themes link to point to themes in the Customizer (
   deep-linked).
 * When a new theme is activated, go to the home page (front end), not the themes
   admin.
 * If user doesn’t `confirm` that they want to leave unsaved changes, remove the
   customize-loading body class (requires core patch).

#### Code

 * Move custom section and control to `class-wp-customize-control|section.php` in`
   wp-includes`.
 * Merge all CSSCSS Cascading Style Sheets. into customize-controls.css, scope to`.
   wp-customizer`.
 * Move `.themes-panel-back` to the Customizer headerHeader The header of your site
   is typically the first thing people will experience. The masthead or header art
   located across the top of your page is part of the look and feel of your website.
   It can influence a visitor’s opinion about your content and you/ your organization’s
   brand. It may also look different on different screen sizes., adjust JS accordingly.
 * Merge JS into `customizer-controls.js`, after the respective object types.
 * Merge customize_themes_template() into wp-admin/includes/theme.php, at the very
   end. Make sure that this file is included at the appropriate time as needed when
   adding the Customizer controls.
 * Merge remaining PHPPHP The web scripting language in which WordPress is primarily
   architected. WordPress requires PHP 7.4 or higher (all in Customize Register 
   callback) into `register_controls()` in `class-wp-customize-manager.php`.

### User Testing

[@designsimply](https://profiles.wordpress.org/designsimply/) has run four usertesting.
com tests (see links in [#core-customize](https://make.wordpress.org/core/tag/core-customize/)),
and we haven’t really seen any ongoing issues with the actual theme switcher. It
has been difficult to get users to follow our instructions, but when they have used
the themes-in-Customizer UI, the interactions have been fairly seamless and as-intended.
Further testing could be beneficial after merge, but we think that in-person testing
and feedback is generally going to be more effective for this particular plugin.

### Outstanding Issues

The exact handling of the themes header display still needs some work – the backwards-
sliding works well but the arrows to indicate it don’t. [@folletto](https://profiles.wordpress.org/folletto/)
opened a [ticket](https://core.trac.wordpress.org/ticket/31289) on core tracTrac
An open source project by Edgewall Software that serves as a bug tracker and project
management tool for WordPress. to work through some alternative options. Most of
the accessibilityAccessibility Accessibility (commonly shortened to a11y) refers
to the design of products, devices, services, or environments for people with disabilities.
The concept of accessible design ensures both “direct access” (i.e. unassisted) 
and “indirect access” meaning compatibility with a person’s assistive technology(
for example, computer screen readers). (https://en.wikipedia.org/wiki/Accessibility)
issues have been fixed as well ([@afercia](https://profiles.wordpress.org/afercia/)
please let me know if I’ve missed any), with the exception of the Themes section
header, which will happen along with the UI changes there for everyone.

### Future Plans

A future phase of this project will explore integrating theme-install in the Customizer
and minimizing the distinction between installed and available themes. Due to the
larger UI and UX changes proposed with that effort, we’ve decided to hold off on
theme-install for now so that the basic theme-switching functionality could be built
on a reasonable timeline for 4.2. This is similar to the manner in which the “[THX](https://make.wordpress.org/core/tag/thx38)”
feature pluginFeature Plugin A plugin that was created with the intention of eventually
being proposed for inclusion in WordPress Core. See [Features as Plugins](https://make.wordpress.org/core/handbook/about/release-cycle/features-as-plugins/)
team re-did themes in 3.8 and theme-install in 3.9.

[#4-2](https://make.wordpress.org/core/tag/4-2/), [#customize](https://make.wordpress.org/core/tag/customize/),
[#feature-plugins](https://make.wordpress.org/core/tag/feature-plugins/), [#merge](https://make.wordpress.org/core/tag/merge/),
[#proposal](https://make.wordpress.org/core/tag/proposal/), [#theme-switcher](https://make.wordpress.org/core/tag/theme-switcher/),
[#themes](https://make.wordpress.org/core/tag/themes/)

 [  ](https://profiles.wordpress.org/celloexpressions/) [Nick Halsey](https://profiles.wordpress.org/celloexpressions/)
12:46 am _on_ February 3, 2015     
Tags: [customize ( 67 )](https://make.wordpress.org/core/tag/customize/),
theme-switcher, [themes ( 43 )](https://make.wordpress.org/core/tag/themes/)   

# 󠀁[Customizer Theme Switcher Update – 2/2](https://make.wordpress.org/core/2015/02/03/customizer-theme-switcher-update-22/)󠁿

We’ve made lots of progress in the past week and will be holding another meeting
tomorrow, [Tuesday February 3 2015 16:00 UTC](https://www.timeanddate.com/worldclock/fixedtime.html?iso=20150203T1600),
in [#core-customize](https://make.wordpress.org/core/tag/core-customize/) SlackSlack
Slack is a Collaborative Group Chat Platform [https://slack.com/](https://slack.com/).
The WordPress community has its own Slack Channel at [https://make.wordpress.org/chat/](https://make.wordpress.org/chat/).
The accessibilityAccessibility Accessibility (commonly shortened to a11y) refers
to the design of products, devices, services, or environments for people with disabilities.
The concept of accessible design ensures both “direct access” (i.e. unassisted) 
and “indirect access” meaning compatibility with a person’s assistive technology(
for example, computer screen readers). (https://en.wikipedia.org/wiki/Accessibility)
team did an [extensive review](https://make.wordpress.org/accessibility/2015/01/31/theme-switcher-accessibility-test-result/)
and we’ve addressed nearly all of the issues that can be fixed in the pluginPlugin
A plugin is a piece of software containing a group of functions that can be added
to a WordPress website. They can extend functionality or add new features to your
WordPress websites. WordPress plugins are written in the PHP programming language
and integrate seamlessly with WordPress. These can be free in the WordPress.org 
Plugin Directory [https://wordpress.org/plugins/](https://wordpress.org/plugins/)
or can be cost-based plugin from a third-party. (big props to [@afercia](https://profiles.wordpress.org/afercia/)
especially for reviewing and patching some of the issues). I made several coreCore
Core is the set of software required to run WordPress. The Core Development Team
builds WordPress. tickets (some with patches, some good-first-bugs) for some of 
the other issues that came up during the review.

[@designsimply](https://profiles.wordpress.org/designsimply/) and [@vizkr](https://profiles.wordpress.org/vizkr/)
have been working on formal and informal [user tests](https://wordpress.slack.com/archives/core-customize/p1422816263000110)
as well. It’s been a little tricky to try to nudge users in the direction of the
Theme Switcher in the CustomizerCustomizer Tool built into WordPress core that hooks
into most modern themes. You can use it to preview and modify many of your site’s
appearance settings. without explicitly asking them to change the theme, but they
haven’t had any negative feedback or expressed that having themes in the Customizer
felt at all out of place. We’ve made a couple of minor adjustments both to the plugin(
improving the filterFilter Filters are one of the two types of Hooks [https://codex.wordpress.org/Plugin_API/Hooks](https://codex.wordpress.org/Plugin_API/Hooks).
They provide a way for functions to modify data of other functions. They are the
counterpart to Actions. Unlike Actions, filters are meant to work in an isolated
manner, and should never have side effects such as affecting global variables and
output. to search for tags without hyphens) and the prompts, and additional tests
are in-progress. We’d like to encourage anyone that can to do informal in-person
testing, asking for feedback on the workflows and/or comparing the themes adminadmin(
and super admin) screen to themes in the Customizer.

Our biggest remaining decision is whether to change the title of the “themes” section
in the Customizer. Currently, it’s “Theme: Current Theme”. Open to suggestions here;
we’ll tweak it for screen readers regardless if it works for everyone else as-is,
but I’m not convinced that it’s the most discoverable option currently.

Here’s an agenda for the meeting:

 * Usertesting.com testing update – [@designsimply](https://profiles.wordpress.org/designsimply/)
 * Theme section heading title discussion
 * Informal testing/feedback updates – anyone
 * Accessibility updates: ready for (or do we need) another round of testing for
   the plugin? – [@afercia](https://profiles.wordpress.org/afercia/)
 * Outstanding issues – anyone
 * Final proposal and core patchpatch A special text file that describes changes
   to code, by identifying the files and lines which are added, removed, and altered.
   It may also be referred to as a **diff**. A patch can be _applied_ to a codebase
   for testing./merge plan and timing – [@MarkJaquith](https://profiles.wordpress.org/MarkJaquith/),
   me, [@DrewAPicture](https://profiles.wordpress.org/DrewAPicture/)

[#customize](https://make.wordpress.org/core/tag/customize/), [#theme-switcher](https://make.wordpress.org/core/tag/theme-switcher/),
[#themes](https://make.wordpress.org/core/tag/themes/)

 [  ](https://profiles.wordpress.org/celloexpressions/) [Nick Halsey](https://profiles.wordpress.org/celloexpressions/)
8:11 am _on_ January 26, 2015     
Tags: [customize ( 67 )](https://make.wordpress.org/core/tag/customize/),
theme-switcher, [themes ( 43 )](https://make.wordpress.org/core/tag/themes/), [thx38 ( 2 )](https://make.wordpress.org/core/tag/thx38/)

# 󠀁[Customizer Theme Switcher Update](https://make.wordpress.org/core/2015/01/26/customizer-theme-switcher-update/)󠁿

The [Customizer Theme Switcher](https://wordpress.org/plugins/customizer-theme-switcher/)
feature-pluginPlugin A plugin is a piece of software containing a group of functions
that can be added to a WordPress website. They can extend functionality or add new
features to your WordPress websites. WordPress plugins are written in the PHP programming
language and integrate seamlessly with WordPress. These can be free in the WordPress.
org Plugin Directory [https://wordpress.org/plugins/](https://wordpress.org/plugins/)
or can be cost-based plugin from a third-party. brings theme switching into the 
CustomizerCustomizer Tool built into WordPress core that hooks into most modern 
themes. You can use it to preview and modify many of your site’s appearance settings..
This project aims to clarify the relationship between themes and theme options by
introducing a themes “panel” (it’s actually a custom section since it contains controls,
not a multi-level hierarchy of sections and controls) to the Customizer. The themes
panel slides in from the left instead of the right, implying a hierarchy of:

 1. Themes – change the entire layout of the site
 2. Theme/site options – tweak various options (default view)
 3. Panels – edit larger groups of site appearance options, such as Widgets and Menus

Essentially, the phase of the project proposed for WordPress 4.2 (and that exists
in the plugin currently) brings the “THX38” theme browsing experience into the Customizer.
Installed themes are browse-able directly in the Customizer controls panel, and 
have a details modal like the adminadmin (and super admin) page. Functionally, theme-
switching is accomplished by reloading the Customizer to live-preview a different
theme. [@westonruter](https://profiles.wordpress.org/westonruter/) is working on
[several related improvements](https://make.wordpress.org/core/2015/01/26/customizer-transactions-proposal/)
that could further streamlining the experience from a technical perspective, but
this feature pluginFeature Plugin A plugin that was created with the intention of
eventually being proposed for inclusion in WordPress Core. See [Features as Plugins](https://make.wordpress.org/core/handbook/about/release-cycle/features-as-plugins/)
is focusing on the switching UIUI User interface, with other improvements considered“
nice to have”. [@folletto](https://profiles.wordpress.org/folletto/) and I have 
also started planning a second phase of the project for a future release that would
also address installing new themes, and simplifying the distinction between installed
and available themes. [@designsimply](https://profiles.wordpress.org/designsimply/)
is currently in the process of user-testing the plugin.

## Get Involved

We’ll hold a **meeting** in [#core-customize](https://make.wordpress.org/core/tag/core-customize/)
[Slack](https://chat.wordpress.org/) to discuss the progress of the plugin this 
[Tuesday, January 27, 2015 16:00 UTC](https://www.timeanddate.com/worldclock/fixedtime.html?iso=20150127T1600),
and continue at that time weekly as needed at that time. Development is happening
directly in the WordPress.orgWordPress.org The community site where WordPress code
is created and shared by the users. This is where you can download the source code
for WordPress core, plugins and themes as well as the central location for community
conversations and organization. [https://wordpress.org/](https://wordpress.org/)
plugins repo – I’ll give commit access to anyone interested in contributing code.
Outstanding issues are noted below, but the plugin is generally ready for review
of code, inline-docs, design, and accessibilityAccessibility Accessibility (commonly
shortened to a11y) refers to the design of products, devices, services, or environments
for people with disabilities. The concept of accessible design ensures both “direct
access” (i.e. unassisted) and “indirect access” meaning compatibility with a person’s
assistive technology (for example, computer screen readers). (https://en.wikipedia.
org/wiki/Accessibility) (with each of those being theoretically good-to-go in the
plugin). Note that the plugin can’t really work on mobile because the Customizer
doesn’t really work on mobile, see [#28784](https://core.trac.wordpress.org/ticket/28784)(
great 4.2 candidate if it gets a patchpatch A special text file that describes changes
to code, by identifying the files and lines which are added, removed, and altered.
It may also be referred to as a **diff**. A patch can be _applied_ to a codebase
for testing.).

Known issues (see also a list of coreCore Core is the set of software required to
run WordPress. The Core Development Team builds WordPress. merge notes in the plugin’s
readme):

 *  Animation closing the themes panel is broken (see commented-out CSSCSS Cascading
   Style Sheets.) ([@celloexpressions](https://profiles.wordpress.org/celloexpressions/))

 *  Persist “return” & “url” URLURL A specific web address of a website or web page
   on the Internet, such as a website’s URL www.wordpress.org parameters in the 
   switch-themes links ([@celloexpressions](https://profiles.wordpress.org/celloexpressions/))

 *  Don’t show the loading animation if there are unsaved changes to avoid getting
   stuck. Actually fixing the underlying issue requires a minor core patch. ([@DrewAPicture](https://profiles.wordpress.org/DrewAPicture/))

 *  Break out of the customize.php iframeiframe iFrame is an acronym for an inline
   frame. An iFrame is used inside a webpage to load another HTML document and render
   it. This HTML document may also contain JavaScript and/or CSS which is loaded
   at the time when iframe tag is parsed by the user’s browser. if the Customizer
   was loaded with the customize-loader script ([@celloexpressions](https://profiles.wordpress.org/celloexpressions/))

 *  PostMessage setting transport may not be working immediately after switching
   themes, cause unknown ([@celloexpressions](https://profiles.wordpress.org/celloexpressions/))

[#customize](https://make.wordpress.org/core/tag/customize/), [#theme-switcher](https://make.wordpress.org/core/tag/theme-switcher/),
[#themes](https://make.wordpress.org/core/tag/themes/), [#thx38](https://make.wordpress.org/core/tag/thx38/)