Enable selective refresh for widgets in customizer (#1778)

This commit is contained in:
Ben Word
2016-12-25 15:48:18 -07:00
committed by QWp6t
parent 121e3f20d7
commit 725ee8446b
2 changed files with 12 additions and 0 deletions

View File

@@ -54,6 +54,12 @@ add_action('after_setup_theme', function () {
*/
add_theme_support('html5', ['caption', 'comment-form', 'comment-list', 'gallery', 'search-form']);
/**
* Enable selective refresh for widgets in customizer
* @link https://developer.wordpress.org/themes/advanced-topics/customizer-api/#theme-support-in-sidebars
*/
add_theme_support('customize-selective-refresh-widgets');
/**
* Use main stylesheet for visual editor
* @see assets/styles/layouts/_tinymce.scss