custom menus in wordpress


/ Published in: PHP
Save to your folder(s)

register custom menus


Copy this code and paste it in your HTML
  1. register:
  2.  
  3. <?php
  4. register_nav_menus( array(
  5. 'primary' => __( 'Primary Navigation', 'primarynav' ),
  6. 'secondary' => __( 'Secondary Navigation', 'secondarynav' ),
  7. 'footer' => __( 'Footer Navigation', 'footernav' ),
  8. ) );
  9.  
  10. ?>
  11.  
  12.  
  13. display:
  14.  
  15. <?php wp_nav_menu(array( 'theme_location' => 'footer')); ?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.