WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/05/2017 02:21:22 AM (2 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-name-control.php

    r41162 r41768  
    4141        <label>
    4242            <# if ( data.label ) { #>
    43                 <span class="customize-control-title screen-reader-text">{{ data.label }}</span>
     43                <span class="customize-control-title">{{ data.label }}</span>
    4444            <# } #>
    45             <input type="text" class="menu-name-field live-update-section-title" />
     45            <input type="text" class="menu-name-field live-update-section-title"
     46                <# if ( data.description ) { #>
     47                    aria-describedby="{{ data.section }}-description"
     48                <# } #>
     49                />
    4650        </label>
     51        <# if ( data.description ) { #>
     52            <p id="{{ data.section }}-description">{{ data.description }}</p>
     53        <# } #>
    4754        <?php
    4855    }
Note: See TracChangeset for help on using the changeset viewer.