• Resolved paul8998

    (@paul8998)


    Hello,

    Recently I had issues with multiple domains on my website. When I clicked the logo or the shop now link I was being redirected from the second domain to our first domain. This issue is resolved, but now there is an issue with WMPL plugin. When I switch languages, it redirects me to the first domain. I have forwarded this question to WPML support and since The Multiple Domain plugin is not listed in their compatibility list for the plugins they requested me to contact the Multiple domain plugin author to apply for their Go Global program.

    https://wpml.org/documentation/theme-compatibility/go-global-program/

    Thank you.

    Best regards.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Gustavo Straube

    (@gustavostraube)

    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 4 years, 9 months ago by Gulshan Kumar. Reason: added emoji
    • This reply was modified 4 years, 9 months ago by Gulshan Kumar.
    • This reply was modified 4 years, 9 months ago by Gulshan Kumar. Reason: Added more clear info after testing Archive version as well
    Plugin Contributor Gustavo Straube

    (@gustavostraube)

    Hey @paul8998

    I just signed up for their Go Global program. I’ll keep you posted.

    Plugin Contributor Gustavo Straube

    (@gustavostraube)

    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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WPML Go Global program’ is closed to new replies.