[wp-trac] [WordPress Trac] #32576: Add Menu management to the Customizer

WordPress Trac noreply at wordpress.org
Tue Jun 16 23:26:49 UTC 2015

#32576: Add Menu management to the Customizer
 Reporter:  celloexpressions  |       Owner:
     Type:  feature request   |      Status:  new
 Priority:  normal            |   Milestone:  4.3
Component:  Customize         |     Version:  trunk
 Severity:  normal            |  Resolution:
 Keywords:                    |     Focuses:

Comment (by greenshady):

 Replying to [comment:20 westonruter]:
 > Replying to [comment:17 greenshady]:
 > > With one of my themes that has a hidden menu by default, the menu is
 opened and messes up the entire design with the change (screenshot
 attached).  This seems to happen because of the addition of the following
 code (added via JS?):
 > >
 > > {{{
 > > <div id="partial-refresh-menu-container-1" class="partial-refresh-
 menu-container" data-instance-number="1">
 > > }}}
 > >
 > > I've already figured out how to correct this on my end, but I imagine
 there'll be other themes with similar issues.  Injecting an additional
 `<div>` has potential to cause some unintended consequences with theme
 > Instead of wrapping the menu with a `div` when `wp_nav_menu` is called,
 we could maybe add those attributes directly onto the root element that
 would be output.

 I tested by live-editing the HTML on my test install.  That idea seems to
 fix the issue for me.

Ticket URL: <https://core.trac.wordpress.org/ticket/32576#comment:22>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list