Support menu navigation for themes in wordpress

Source: Internet
Author: User
Support menu navigation for themes in wordpress
<无详细内容>

  1. 1. the folder used by the topic is in the topic folder corresponding to wp-content/themes /.
  2. The topic contains ----- functions. php (the functions used by the topic are mainly in this section). add the following code to this file:
  3. Register_nav_menus (array ('header-menu '= >__ ('Navigation custom menu'),); // register the navigation menu
  4. 2. in the header. php file in the topic folder
  5. "> Blog
  6. Comment out,
  7. Change
  8. 'Header-menu ');?> Code
  9. 3. set in the background menu
  10. Choose "New Menu"> "options on the right" to add to the menu. choose "topic location" to use the navigation menu name.
  11. Remember to save each step!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.