This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 3 replies, has 2 voices.

Last updated by Marcos Vinicios Barreto 3 weeks, 5 days ago.

Assigned support staff: Marcos Vinicios Barreto.

Author Posts
September 26, 2019 at 7:47 pm #4650001

drbrad

Hi Team,

Is there a way to place Language selector menu beside Avada Search icon in Main Navigation?

Thanks

September 26, 2019 at 8:01 pm #4650123

Marcos Vinicios Barreto
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Bahia (GMT-03:00)

Hello,

Thank you for contacting WPML Support. In this case you should achieve it by code as by the default the WPML Menu Language Switcher is only able to be placed before or after actual menu items. You have two options for that:

1 - Dropdown language switcher

do_action( 'wpml_add_language_selector' );

2 - Horizontal list of languages

do_action( 'wpml_footer_language_selector' )

In both cases you would need to edit your theme files to include this code, the recommended way of doing it is using your Avada Child Theme as it is never a good practice to edit the parent theme files directly, doing so, you would loose your changes on every theme update.

See: https://developer.wordpress.org/themes/advanced-topics/child-themes/

Hope it helps, have a nice day.

September 27, 2019 at 7:05 am #4651941

drbrad

Where we can change in code for customising the main navigation?

September 27, 2019 at 3:52 pm #4655681

Marcos Vinicios Barreto
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Bahia (GMT-03:00)

Hello,

Thank you for the updates. It all depends from theme to theme, you should open the header.php file of your child theme folder and enter the code in the desired location, I recommend you to get in touch with one of our WPML contractors at: https://wpml.org/contractors/ in case you don't feel comfortable with code. Thank you for your understanding, have a nice day.