Forums

edit Twenty eleven theme navigation bar (3 posts)

  1. beavercreeklodge
    Member
    Posted 9 months ago #

    I am trying to figure out how to get rid of the home button on the navigation bar if anyone could let me know how to fix this it would be much appreciated

  2. beavercreeklodge
    Member
    Posted 9 months ago #

  3. alchymyth
    The Sweeper
    Posted 9 months ago #

    don't edit Twenty Eleven directly - it is important to have an unedtited default theme in case of other theme problems.
    also, all customisations will be overwritten with your next upgrade.
    create a child theme http://codex.wordpress.org/Child_Themes and do the edits in there.

    in functions.php of the child theme, add:

    add_filter( 'wp_page_menu_args', 'tec_page_menu_args', 11 );
    function tec_page_menu_args( $args ) {
    	$args['show_home'] = false; // no 'home' button
    	return $args;
    }

Reply

You must log in to post.

About this Topic