Make WordPress Core


Ignore:
Timestamp:
10/05/2017 02:21:22 AM (7 years ago)
Author:
westonruter
Message:

Customize: Improve the menu creation flow.

Often, folks run into two issues when they create new menus: they click "Add a Menu" thinking it will add a new page to their menu, or they forget to assign their new menu to a location, and then wonder why it doesn't show up on their site.

This commit rearranges the order of items in the menu panel, and updates the flow for creating a menu by breaking it up into steps. Additionally, more help text has been added to guide people through the process of creating a menu.

Also adds default type lookups for Panel and Section instances. See #30741.

Props bpayton, obenland, westonruter, celloexpessions, afercia, melchoyce, zoonini, michelleweber.
Fixes #40104.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/customize/class-wp-customize-nav-menu-auto-add-control.php

    r41162 r41768  
    3939    protected function content_template() {
    4040        ?>
     41        <# var elementId = _.uniqueId( 'customize-nav-menu-auto-add-control-' ); #>
    4142        <span class="customize-control-title"><?php _e( 'Menu Options' ); ?></span>
    42         <label>
    43             <input type="checkbox" class="auto_add" />
    44             <?php _e( 'Automatically add new top-level pages to this menu' ); ?>
    45         </label>
     43        <span class="customize-inside-control-row">
     44            <input id="{{ elementId }}" type="checkbox" class="auto_add" />
     45            <label for="{{ elementId }}">
     46                <?php _e( 'Automatically add new top-level pages to this menu' ); ?>
     47            </label>
     48        </span>
    4649        <?php
    4750    }
Note: See TracChangeset for help on using the changeset viewer.