Hello,
The Multiple Domain doesn’t play well with WPML, Polylang or any other plugin that relies on domain/subdomain changes to show content, i.e. one (sub)domain per language. In any case, I’ll take a look at those docs and see if it’s possible to make them compatible. If needed, I’ll get in touch with WPML support team.
Thanks,
Gustavo
I use WPML and Multiple Domains plugin.
Problems
At homepage (Be it Traditional Archive or Custom), the Language switcher URL and Hreflang path was not rewriting as per my Alias domain added in Multiple Domains.
I could fix my problem INSTANTLY by adding below code. 😍
// Show alias at Homepage as well
function filter_wpml_active_languages( $home_url) {
if (class_exists('MultipleDomain')) {
$multipleDomain = MultipleDomain::instance();
}
return $multipleDomain->fixUrl($home_url);
};
// add the filter
add_filter( 'wpml_url_converter_get_abs_home', 'filter_wpml_active_languages', 10 );
Source: https://wpml.org/forums/topic/multiple-domain/#post-5390015
I will update here if I notice any issue. So far looks good to me.
Thanks & Regards,
Gulshan
-
This reply was modified 6 years, 3 months ago by
Gulshan Kumar. Reason: added emoji
-
This reply was modified 6 years, 3 months ago by
Gulshan Kumar.
-
This reply was modified 6 years, 3 months ago by
Gulshan Kumar. Reason: Added more clear info after testing Archive version as well
Hey @paul8998
I just signed up for their Go Global program. I’ll keep you posted.
I still didn’t have any free time to work on officially supporting WPML. I’m closing this topic, though. Further discussions on this feature should happen on the related issue, on GitHub: https://github.com/straube/multiple-domain/issues/73