ThemeShaper Forums » Thematic

[closed]

Home link in Menu

(3 posts)
  • Started 2 years ago by Karl-Arne
  • Latest reply from helgatheviking
  • This topic is not resolved
  1. Hello again.
    I am trying to add a home link in the menu. In function.php I comment out this lines as described but nothing happen.

    // Adds a home link to your menu
    // http://codex.wordpress.org/Template_Tags/wp_page_menu
    function childtheme_menu_args($args) {
    $args = array(
    'show_home' => 'forsiden',
    'sort_column' => 'menu_order',
    'menu_class' => 'menu',
    'echo' => true
    );
    return $args;
    }
    add_filter('wp_page_menu_args','childtheme_menu_args');

    I have also read http://codex.wordpress.org/Template_Tags/wp_page_menu but can't figure out how to enable home in the menu.

    Thanks for your time

    Posted 2 years ago #
  2. sowingseeds
    Member

    It does depend some on which version of Thematic you are using. Try changing the 'echo' from true to false, and add a priority number '20' on the last line:

    add_filter('wp_page_menu_args','childtheme_menu_args',20);

    Posted 2 years ago #
  3. read: http://forums.themeshaper.com/topic/thematic-menus-demystified-1

    also, why not just create a custom menu?

    Posted 2 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.