How to add native menu support in your WordPress theme?

advertisement

wordpress If you are wordpress theme author, you might see this in your menu settings page very often. “The current theme does not natively support menus, but you can use the “Custom Menu” widget to add any menus you create here to the theme’s sidebar.”

The message above clearly stated that your theme doesn’t natively support menus. If your theme can support menu natively, it allow user to easily choose or modify the menu without any programming knowledge. This is important if you would like to make your theme user friendly and easily customize.

wordpress add native menu support, wordpress support native menu

To add native menu support in your WordPress theme, follow the steps below:-

  • Open your theme functions.php file and add the line below:-
  • Once saved, and refresh your Menu settings page and you should see your theme support menu natively. Just click on the drop down and you can select the menu.
    wordpress add native menu support, wordpress support native menu

happy coding! :)

Related posts:

Speed Up and Save Your Website Bandwidth with GZip Compression
WordPress WP-Cache with GZip Compression enable
FCKEditor - The full feature Web based WYSIWYG HTML Editor
Free image editor for Mac OS X / XP / Vista / Linux
How to loop thru directory files in bash shell
How to setup mysqldump without password in cronjob
How to send HTML email in Thunderbird
WordPress Dev: How to send html email using wp_mail()?






Leave a Reply