Header Button Chance Polylang Elementor

Currently, I am making a Bilingual website, and I made a button on the header as well, and I want to make the button bilingual as well, but I don’t know how could I change its language because it is not part of the menu.
I use Polylang and Elementor.

enter image description here

Go to Source
Author: Anon

how to add li and a classes and id to the nav menu with code?

I have registered nav menu. here is the code

<?php 
                    wp_nav_menu(
                            array (
                                    'theme_location' => 'top-menu',
                                    'menu_id' => 'navbarSupportedContent',
                                    'menu_class' => 'navbar-nav ml-auto',
                                    'container' => 'ul',
                                
                            )
                );  ?>

but li and a have classes that are not applied to the nav menu wordpress code. so how to add them?

<li id="f-one" class="nav-item"><a class="nav-link" href="#home">Home</a></li>

so any of f-one id or nav-item, nav-link added to the wordpress nav menu style. how to add them please?

Go to Source
Author: social

child theme automatically adds new page to top menu instead of only custom menu

In my child theme I have top navigation and custom navigation. I only need to add new page to my custom nav, however, same page gets also added to top nav. Is there a way to stop this behavior?

I unchecked ‘Automatically add new top-level pages to this menu’ in my top nav but it didn’t help

Go to Source
Author: 810311