• Hey guys,

    first of all: Awesome Plugin and very easy to setup.
    I am working on a website in 4 languages and I have created 4 buttons which are placed into the header.php – why? The template doesn’t have a sidebar.
    Now I am struggeling with the following problem:

    I am on the german page, navigate to contact. The moment I click on french it guides me to the french startpage, but I would like to switch the language very easy. In this case (I am on the german contact page) and I click on french I would love to be on the french contact page.

    I hope you guys get my question: how can I realize this?

    Regards

    Martin

    https://ww.wp.xz.cn/plugins/multilingual-press/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Are the French and the German contact pages marked as translations of each other?

    Thread Starter WeDev.Africa

    (@mad2kx)

    Hi Toscho,
    thanks for your fast reply.

    No they are not marked as translation.

    Is this required?

    Thread Starter WeDev.Africa

    (@mad2kx)

    I just tried what you asked me but it does not help me. I marked the french contact page as a translation of german, published it…
    as mentioned above, the links are manually added into the header.php

    E.g.:
    doamin.com/de
    domain.com/ru
    domain.com/en
    doamin.com/fr

    The template does not have a sidebar (not wished/needed)

    To get the correct links, use Mlp_Helpers::show_linked_elements();. That will output a list of links to translations of the current page (if available).

    If you use hard-coded links, MLP cannot change anything. 🙂

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Language Switcher’ is closed to new replies.