• Hi everyone!

    I’m using the qTranslate plugin to make my site multilingual. I’m having a small issue with the header though.

    I want the “home” link in the header to be translated to danish, when clicking on the danish flag. I also want it to link to the danish frontpage, instead of the english.

    Look at my website and see what i mean:

    https://www.nielsvandel.com

    1) Click on the danish flag.
    2) Notice how everything translates except the “Home” link in the header.
    3) Try clicking on the “Home” link and observe how it links back to the english version of the frontpage.

    I have found a clue as to what is causing this problem. The author of Qtranslate writes the following:

    This is a template problem. Your template is using get_option(‘home’) to get the link for the front page, which is BAD! get_option is not supposed to be used in templates. There is a function called bloginfo for templates. Use that instead and everything will work the way it is supposed to.

    I have tried looking in the editor for this get_option function, but can’t seem to find it.

    Does anyone know what I should do?

    I thank you in advance for your help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Go to Appearance – Menus and create your menu.
    In the home navigation label, change everything with the following:

    <!–:dk–>Hjem<!–:–><!–:en–>Home<!–:–>

    Thread Starter Niels V.

    (@niels-v)

    Thanks for your reply!

    However – I tried it and it didn’t work!

    The label just changed to the exact line you provided me, so I changed it back. Any ideas about what I did wrong?

    I’m not sure. Maybe it depends on what language is your default language in qTranslate.

    Let’s split the steps. This is the link I’ve sent you:
    <!–:dk–>Hjem<!–:–><!–:en–>Home<!–:–>

    If your default language is dk, then it should also be the first language in the above equation. On the other hand, if your blog’s default language is en, then it should be the first language in the above equation.

    So try again the followings:
    <!–:dk–>Hjem<!–:–><!–:en–>Home<!–:–>
    or
    <!–:en–>Home<!–:–><!–:dk–>Hjem<!–:–>
    Be careful and insert it in the “Navigation Label” field only.

    If that still doesn’t work, you can always put a little home icon instead of the word “Home”, with the following code:

    <img src = ‘image-location’ />

    example:
    <img src = ‘https://domain.com/wp-content/uploads/2012/10/home.png&#8217; />

    Hello everybody! I’ve just registered here, so please forgive me my newby mistakes I will make.
    My quartet needed a website and a friend made us one with wordpress. It was important that we could modify it easily.
    I have started to work on it, but some things I couldn’t find out how to:
    The home page text ( title/header ) should be multilingual, so as I change the desired language, then the title/header should also change according to it.
    Also, can I add links, logos to the header?
    Thanks in advance for the suggestions and answers!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Zenon Lite multilingual header problem (home link)’ is closed to new replies.