Skip to content

Commit

Permalink
Enhance 'Create a new menu' visibility by converting text link to button
Browse files Browse the repository at this point in the history
  • Loading branch information
snehapatil2001 committed Feb 27, 2025
1 parent b45e379 commit 9f4ada5
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions src/wp-admin/nav-menus.php
Original file line number Diff line number Diff line change
Expand Up @@ -954,19 +954,26 @@ function wp_nav_menu_max_depth( $classes ) {
<span class="add-edit-menu-action">
<?php
printf(
/* translators: %s: URL to create a new menu. */
__( 'Edit your menu below, or <a href="%s">create a new menu</a>. Do not forget to save your changes!' ),
esc_url(
/* translators: No placeholders needed now */
__( 'Edit your menu below with necessary details. To create a new menu, click the button below. Don\'t forget to save your changes!' )
);
?>
<br>
<a href="
<?php
print esc_url(
add_query_arg(
array(
'action' => 'edit',
'menu' => 0,
),
admin_url( 'nav-menus.php' )
)
)
);
?>
);
?>
" class="button button-primary" style="margin-top: 10px; display: inline-block;">
<?php _e( 'Create a new menu' ); ?>
</a>
<span class="screen-reader-text">
<?php
/* translators: Hidden accessibility text. */
Expand Down

0 comments on commit 9f4ada5

Please sign in to comment.