[wp-trac] [WordPress Trac] #27112: Add widget management to the customizer

WordPress Trac noreply at wordpress.org
Thu Mar 13 04:12:10 UTC 2014


#27112: Add widget management to the customizer
----------------------------+------------------
 Reporter:  nacin           |       Owner:
     Type:  task (blessed)  |      Status:  new
 Priority:  normal          |   Milestone:  3.9
Component:  Widgets         |     Version:
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:
----------------------------+------------------

Comment (by westonruter):

 Replying to [comment:34 adampickering]:
 > *  If the widget area does not have any active widgets in the widget
 area, does it show that widget area in the customizer?

 Yes, if the widget area is used in the template being previewed (i.e. the
 widget area is rendered with a `dynamic_sidebar()` call), then the
 customizer section for that widget area would be displayed, even if the
 sidebar is empty (depending on #25368) or if all of the widgets in the
 sidebar are not active for the currently previewed URL. If a widget is not
 rendered in the template (e.g. it is turned off via Jetpack's Widget
 Visibility) then the widget control will have a translucent appearance. (I
 just noticed Widget Visibility doesn't work currently, but I see the fix.)

 Replying to [comment:34 adampickering]:
 > *  Say your home page template has widgets dedicated to that template
 page. If you are viewing another page in the customizer (i.e. blog), does
 it show all widget areas in the customizer. For example: the home page
 dedicated widget areas. I don't think much of this could happen, based on
 how I believe the customizer works, but thought i'd ask.

 If only the `front-page.php` template, for example, uses a
 `dynamic_sidebar( 'home' )` then the customizer section for that widget
 area will only appear in the customizer when the home page is being
 previewed in the customizer. Note that you can navigate around the site
 within the customizer, or you can navigate to an arbitrary page and then
 enter the customizer from that page to then open the customizer previewing
 that URL. As you navigate around the site in the customizer, the widget
 area sections will show/hide based on which widget areas are used in the
 template.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27112#comment:35>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list