Last active
June 1, 2021 07:46
-
-
Save nguyenit67/4aa8b61560862b8110a16e26d517d471 to your computer and use it in GitHub Desktop.
Custom Menu In WordPress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php register_nav_menus( [ 'primary' => __( 'Primary Menu' ) ] ); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php $args = [ 'theme_location' => 'primary' ]; ?> | |
<?php wp_nav_menu( $args ) ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment