• Resolved dean_l

    (@dean_l)


    Hi There

    We use GTtranslate and it great. Now we build new Chinese website and would like to add that when someone click “Chinese (Simplified)” – we send him to a new website, rather than show the translation or the English website. For all other languages we want to keep as it is.
    Can we forward drop down to go to external URL when “Chinese (Simplified)” is selected?

    Thank you for your time.

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author edo888

    (@edo888)

    Hi,

    You can possibly use javascript to change the onclick behavior for Chinese.

    Please consult your developer to add a javascript onclick event on Chinese button, so when someone clicks on it, it redirects to the proper URL.

    Thanks! ??

    Thread Starter dean_l

    (@dean_l)

    Thanks for the reply, Edvard.

    Is is possible to add code in custom css? Something like an exmaple below.

    Or which file we should edit to add redirect?

    a.gt-link lang="cn" label="Chinese (Simplified)" redirect_URL="<myURL>"
    Plugin Author edo888

    (@edo888)

    No, you will need to write javascript code somewhere in your theme. Please consult your developer.

    Thread Starter dean_l

    (@dean_l)

    Hi Edvard, I don’t have developer that can help me on this. Is there a simple way I can sort it? Can I find a wordpress function that will do this?

    would something like this work?

    function change(){
    
      var linkElement = document.getElementById("link");
      linkElement.;
    
    }

    where link would be ‘cn’ and bing.com my URL

    • This reply was modified 1 year ago by dean_l.
    Plugin Author edo888

    (@edo888)

    Unfortunately I do not provide support for such customizations, you can hire someone to do the task for you. Thanks! ??

    Thread Starter dean_l

    (@dean_l)

    Can you please help me by letting me know where should javascript be included? Is this in header of in some file within GTranslate plugin?
    And I will try find the script somewhere.

    Thread Starter dean_l

    (@dean_l)

    I appreciate your help, Edvard. If you can point me in the right direction.
    Thanks in my name and others who are trying to use open source and build with wordpress.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Forward to language to new site?’ is closed to new replies.