Transposh WordPress Translation
Code in header (not in widget) to make default language not as an option (2 posts)

  1. ramystyle123
    Posted 3 years ago #


    I have a site in English. I would like to add in the header part of my page the following:

    However, I would like that if the user is in the english page to only show FRANCAIS and if the user is on the french page to only show ENGLISH ?

    I don't want to show any flags.

    Can someone guide me on the code to insert? I have zero knowledge in php but i thing to should be an "if" function ? :)

    Thanks for your help !


  2. Ofer Wald
    Plugin Author

    Posted 3 years ago #

    use something like

    if ('en' == transposh_get_current_language()) {
    echo "english";
    elseif ('fr' == transposh_get_current_language()) {
    echo "francais";

    Good luck

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Transposh WordPress Translation
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic