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 1 reply, has 2 voices.

Last updated by Bruno 2 months, 2 weeks ago.

Assigned support staff: Bruno.

Author Posts
July 29, 2019 at 10:32 pm #4303773

ronaldB-13

Hey, i habe 3 languages. 2 on the Main Site and the 3rd one has an own Domain.

I tried this code, but how can i insert the link and open it in a new tab? The Domain is hidden link

Code in Functions PHP:
add_filter( 'icl_ls_languages', function( $languages ) {
$languages['ru']['url'] = '<u>hidden link</u>';
return $languages;
});

My other Problem is i am using the Shortcode [wpml_language_selector_widget] and the first language doesn't get show because there is no content on the website in that language (Because the "ru" language has its own domain.

Thanks

July 29, 2019 at 11:27 pm #4303833

Bruno
Supporter

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

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

Hi,

Thank you for contacting us. To do exactly what you want, you will need to use extra custom code. You can either create a custom JavaScript or create a custom selector to do this.

To create a custom selector you can see in our documentation:
- https://wpml.org/documentation/getting-started-guide/language-setup/custom-language-switcher/

Please note that as this is a custom feature, unfortunately, this is beyond the scope of our support.

We have a list of WPML hooks that can help you develop such feature, which can be seen in the links below:

- https://wpml.org/documentation/support/wpml-coding-api/wpml-hooks-reference

If you prefer, you can contact one of our certified partners who can develop small to large features for your site: http://wpml.org/documentation/support/wpml-contractors/

Please, let me know if I can help with any other questions you may have about it. I'll be happy to help.

Thank you.

The topic ‘[Closed] 3 Languages, one of them to an external link’ is closed to new replies.