• Resolved Prowello

    (@prowello)


    Hello,

    For my new project i need my site to have two languages: Dutch and English. I have an all new domain, installed wordpress and downloaded and activated qTranslate-X as it fulfills all my needs. The plugin works fine in the back-end: i can translate every post and page manually which then shows on the front-end plus the browser sends me to the correct language accordingly to the language defined in my browser settings.

    However i would like to show the language switcher on the front end. I put it in a custom menu, but it’s not showing on the front-end. Also the link to another page that is showing in the front-end menu is not translated while i did translate it manually in the back end. I have tried to show the switcher in the header of my page using the php code from the FAQ: <?php echo qtranxf_generateLanguageSelectCode(‘both’); ?> but that also did not work.

    Did i do something wrong with the installation? Can somebody help me?

    https://www.ads-software.com/plugins/qtranslate-x/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Gunu

    (@grafcom)

    @prowello

    what theme do you use?
    Try it also with a standard WP theme

    Thread Starter Prowello

    (@prowello)

    Hi Gunu,

    Thanks for your reply. I’m using the standard twentythirteen theme. It’s a clean WP install and i have not installed any theme’s or other plugins.

    Plugin Author Gunu

    (@grafcom)

    @prowello

    You use Appearance – Menus – Language Switcher?

    What is in the URL and Navigation Label?

    Thread Starter Prowello

    (@prowello)

    Gunu.. could you please come slap me in the face? I forgot to assign the custom menu in Manage Locations.. It’s working now..

    But the php code in the header still doesn’t work. I think i’d rather have the switcher at the top of the page. I checked and i put this code in the header.php file of the current theme: <div class="languageSelect"><?php echo qtranxf_generateLanguageSelectCode(‘both’); ?></div>. I can find the div in the source of the page, but there is nothing inside.

    Plugin Author Gunu

    (@grafcom)

    This does not work?

    <?php echo qtranxf_generateLanguageSelectCode('image'); ?>

    .qtranxs_language_chooser li { float:left; margin-right:2px; }

    Thread Starter Prowello

    (@prowello)

    Yes, that’s working like a charm! Thanks. Could you explain why this is working and the other code isn’t? You only changed “both” to “image”.

    Plugin Author Gunu

    (@grafcom)

    (‘both’)

    ('image')

    Try ' instead of ??

    Thread Starter Prowello

    (@prowello)

    Thank you very much for your help, Gunu.

    Plugin Author Gunu

    (@grafcom)

    @prowello

    you are welcome!

    You can review this plugin to help other people to find out the value.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Language switcher front end not showing’ is closed to new replies.