Customize: Add notice for when there are no nav menus created yet, prompting user to create one.
Props bpayton, melchoyce, westonruter. Fixes #42116. Built from https://develop.svn.wordpress.org/trunk@41823 git-svn-id: http://core.svn.wordpress.org/trunk@41657 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -951,6 +951,12 @@ final class WP_Customize_Nav_Menus {
|
||||
</script>
|
||||
|
||||
<script type="text/html" id="tmpl-nav-menu-create-menu-section-title">
|
||||
<p class="add-new-menu-notice">
|
||||
<?php _e( 'It doesn’t look like your site has any menus yet. Want to build one? Click the button to start.' ); ?>
|
||||
</p>
|
||||
<p class="add-new-menu-notice">
|
||||
<?php _e( 'You’ll create a menu, assign it a location, and add menu items like links to pages and categories. If your theme has multiple menu areas, you might need to create more than one.' ); ?>
|
||||
</p>
|
||||
<h3>
|
||||
<button type="button" class="button customize-add-menu-button">
|
||||
<?php _e( 'Create New Menu' ); ?>
|
||||
|
||||
Reference in New Issue
Block a user