C
C
crimco2020-07-22 09:20:10
User navigation
crimco, 2020-07-22 09:20:10

How to change the display of the word Menu into Russian?

Hello
I found the most minimal WordPress theme
Total 6 kb
https://sustywp.com/
The menu is formed as a separate page
https://sustywp.com/menu/
Please look where in the code to change so that the word MENU on the main page is displayed in Russian?
I changed it on the page itself, but I don’t understand how to do it on the main page
Thank you

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2020-07-22
@crimco

In header.php, the esc_html_e() function:

<a href="<?php echo esc_url( ( get_option( 'permalink_structure' ) ? home_url( '/menu/' ) : home_url( '/?menu' ) ) ); ?>"><?php esc_html_e( 'Menu', 'susty' ); ?></a>

https://github.com/jacklenox/susty/blob/5b4d019b06...
Replace with:
<a href="<?php echo esc_url( ( get_option( 'permalink_structure' ) ? home_url( '/menu/' ) : home_url( '/?menu' ) ) ); ?>"><?php esc_html_e( 'Меню', 'susty' ); ?></a>

An alternative solution would be to translate the theme into Russian: https://misha.blog/wordpress/translations.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question