Change nav text 'HOME' to smth else & dissallow to appear at homepage
-
I am using the TwentyTwelve and I was trying to find a way to change the text ‘HOME’ to my own language but I couldn’t find anything in forums or what I found was obsolete (or at least the older theme)
I found this into functions.php:
/** * Makes our wp_nav_menu() fallback -- wp_page_menu() -- show a home link. * * @since Twenty Twelve 1.0 */ function twentytwelve_page_menu_args( $args ) { if ( ! isset( $args['show_home'] ) ) $args['show_home'] = true; return $args; } add_filter( 'wp_page_menu_args', 'twentytwelve_page_menu_args' );
and I changed this single line to:
$args['show_home'] = false;
but I am not sure (as I don’t know php) if it is the right one. Is it a good approach, or could / should do it an other way?
Also, how can I delimit the appearance of the Home nav link to all other pages except the actual home page?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Change nav text 'HOME' to smth else & dissallow to appear at homepage’ is closed to new replies.