• Resolved vtifu

    (@vtifu)


    Hi!
    Working with Twenty eleven 1.2 theme
    This is my web site. 30-noeuds.com
    Please help..

    I want to change the ” home ” in the dropdown menu by the name “Accueil” in french.

    I’ve check topics in the forum but can`t find anything for the moment.
    Where I need to go…

    tx!

Viewing 7 replies - 1 through 7 (of 7 total)
  • strongly consider to create a child theme of Twenty Eleven and make the edits in there;
    it is important to have an unedited default theme in case of theme problems; also, be aware that any customisations to Twenty Eleven will be overwritten with the next upgrade of your wordpress version.

    for instance, in the child theme’s functions.php, add:

    add_filter( 'wp_page_menu_args', 'twentyelevenchild_page_menu_args', 20 );
    /**
     * Get our wp_nav_menu() fallback, wp_page_menu(), to show a home link.
     */
    function twentyelevenchild_page_menu_args( $args ) {
    	$args['show_home'] = 'Accueil'; //rename 'home' button
    	return $args;
    }

    —–
    without child theme, in Twenty Eleven directly, edit functions.php and find:

    function twentyeleven_page_menu_args( $args ) {
    	$args['show_home'] = true;
    	return $args;
    }

    change:
    $args['show_home'] = true;
    to:
    $args['show_home'] = 'Accueil';

    Thread Starter vtifu

    (@vtifu)

    Tx a lot for the reply..

    I’ve went to settings — > reading —> and play with post display. I think it’s important that I understand my mistake.

    I do have 2 homes pages!! now 1 for posting and 1 for Acceuil.
    Maybe there is a simple way to display only the Acceuil page on my front page without changing code.

    here is the result —> 30-noeuds

    Im only working with CMS mode on wordpress.. I can probably changing the code in this case but if it’s only a problem of settings maybe it’s better to go that way.

    I’ve probably didn’t follow the right way to create my page?

    possibly the easiest way to get rid of the two home links:

    if you change to:
    $args['show_home'] = false;

    then the home page link will disappear;

    if you want, you can then set Acceuil to be your front page.

    Thread Starter vtifu

    (@vtifu)

    Wow tx ! this make the trick really easy.

    I do have a spacing left and right in the menu bar now.. which making to put the dropdown menu over 2 row now.

    humm.. Maybe I should adjust marging in the menu bar?

    the margins would be in this style:

    #access div {
    	margin: 0 7.6%;
    }
    Thread Starter vtifu

    (@vtifu)

    You guys rock ! tx so much ??

    This is very useful. I also want to ask,
    – how to change the “home” in the menu bar to the icon image?
    – how to change the color of the menu bar?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Edit Twenty eleven theme navigation bar’ is closed to new replies.