Skip to content

Instantly share code, notes, and snippets.

@AndorChen
Created January 12, 2012 15:15
Show Gist options
  • Save AndorChen/1601056 to your computer and use it in GitHub Desktop.
Save AndorChen/1601056 to your computer and use it in GitHub Desktop.

Revisions

  1. AndorChen revised this gist Jan 12, 2012. 1 changed file with 7 additions and 5 deletions.
    12 changes: 7 additions & 5 deletions functions.php
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,7 @@
    add_action('after_setup_theme', 'ac_theme_setup');
    function ac_theme_setup(){
    // 自定义导航菜单
    register_nav_menu('top', '顶部菜单');
    }
    <?php
    add_action('after_setup_theme', 'ac_theme_setup');
    function ac_theme_setup(){
    // 自定义导航菜单
    register_nav_menu('top', '顶部菜单');
    }
    ?>
  2. AndorChen created this gist Jan 12, 2012.
    5 changes: 5 additions & 0 deletions functions.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    add_action('after_setup_theme', 'ac_theme_setup');
    function ac_theme_setup(){
    // 自定义导航菜单
    register_nav_menu('top', '顶部菜单');
    }