Posted By

robnilas on 01/21/17


Tagged

wordpress menus


Versions (?)

Custom Menus


 / Published in: PHP
 

  1. // ===============================
  2. // Custom Menus
  3. // ===============================
  4.  
  5. function custom_menus() {
  6. register_nav_menus(array(
  7. 'main-menu' => __( 'Main Menu' ),
  8. 'footer-menu' => __( 'Footer Menu' ),
  9. 'footer-menu-legal' => __( 'Footer Menu - Legal' ),
  10. 'sales-footer-menu' => __( 'Sales Footer Menu' )
  11. ));
  12. }
  13.  
  14. add_action( 'init', 'custom_menus' );

Report this snippet  

You need to login to post a comment.