WordPress.org

Ready to get started?Download WordPress

Forums

How to put home url in new wp_nav_menu? (2 posts)

  1. alonsaints
    Member
    Posted 4 years ago #

    Hi,
    Anyone knows how I can put a section called Home in new wp_nav_menu template tag but in functions.php? I tried with functions of twentyten theme but don't work.

    <?
    function twentyten_page_menu_args( $args ) {
    	$args['show_home'] = true;
    	return $args;
    }
    add_filter( 'wp_page_menu_args', 'twentyten_page_menu_args' );?>

    Someone can help me please?
    Thanks in advance

  2. Tom Smith
    Member
    Posted 3 years ago #

    One Super Easy way to do that would be to add a custom link in the menu, http://yourdomain.com/

    Zero code.

Topic Closed

This topic has been closed to new replies.

About this Topic