Answer the question
In order to leave comments, you need to log in
How to create "Theme Areas" for menus?
Hello,
I created a site, everything is set up. It's time to add multilingualism, installed the plugin: Polylang, it seems like everything works, but when it came to the translation of the menu, then trouble happened, there is no " Theme Area " in the menu settings to mark each menu for different languages.
Although normal people automatically have labels:
I thought that the problem might be in the " register_nav_menu() " function, but it turned out to be even worse. It is completely absent in the topic, even in the "screen settings", there is no "Theme Area".
Please tell me what could be the problem? It is necessary, in fact, only to explain Polylang, so that for different languages, it uses different menus.
Answer the question
In order to leave comments, you need to log in
So add it with the required number of menu items :)
// Add Your Menu Locations
function register_my_menus() {
register_nav_menus(
array(
'header_navigation_rus' => __( 'Header Navigation RUS' ),
'header_navigation_eng' => __( 'Header Navigation ENG' )
)
);
}
add_action( 'init', 'register_my_menus' );
Villarou
So add it with the required number of menu items :)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question