Changeset 58293
- Timestamp:
- 06/03/2024 12:49:36 PM (6 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentytwentyone/inc/menu-functions.php
r55276 r58293 26 26 */ 27 27 function twenty_twenty_one_add_sub_menu_toggle( $output, $item, $depth, $args ) { 28 if ( 0 === $depth && in_array( 'menu-item-has-children', $item->classes, true ) ) { 28 if ( 'primary' === $args->theme_location 29 && 0 === $depth && in_array( 'menu-item-has-children', $item->classes, true ) 30 ) { 29 31 30 32 // Add toggle button.
Note: See TracChangeset
for help on using the changeset viewer.