Wordpress - Add Custom Menu Support


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

Add this to your functions.php file


Copy this code and paste it in your HTML
  1. add_action('init', 'register_custom_menu');
  2.  
  3. function register_custom_menu() {
  4. register_nav_menu('custom_menu', __('Custom Menu'));
  5. }

URL: http://thinkvitamin.com/code/getting-started-with-wordpress-custom-menus/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.