J
J
jake23032019-06-12 13:54:26
WordPress
jake2303, 2019-06-12 13:54:26

WordPress how to change Home title for mobile version?

Hello, I changed the name of the menu item from Home to Store through the WP settings. It worked when viewing the page from a computer. But if you view the main page from a mobile phone, then when you open the Menu, the name Home does not change. All other names of renamed menu items change. Please help me change the name of Home.5d00d9d4d6dbe378237329.jpeg

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey Biryukov, 2019-06-12
@jake2303

Instead of editing the engine files, it is better to find a call in the child theme wp_page_menu()and show_homespecify the desired text as a parameter. More or less like this:

wp_page_menu( array(
    'show_home' => 'My Text';
) );

Or add a snippet like this in functions.phpa child theme:
function my_home_text( $args ) {
    $args['show_home'] = 'My Text';
    return $args;
}
add_filter( 'wp_page_menu_args', 'my_home_text' );

I
Ivan K, 2019-06-12
@ikonkov

perhaps a separate menu for mobile devices has been created - look at the appearance - menu

A
Anatoly Kulikov, 2019-06-13
@anatoly_kulikov

You can use the Mobile-Detect library .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question