Support » Plugin: Translate Wordpress with GTranslate » Disable on certain page

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

    (@edo888)

    Hi,

    You should be able to place the language selector via PHP conditionally:

    <?php
    if($condition)
        echo do_shortcode('[gtranslate]');
    ?>

    Thanks! 🙂

    Thread Starter Jimmy

    (@simplejimbo)

    Thanks, it did not work, maybe I should have asked to stop the script, not the plugin. do you have anything for that?

    Plugin Author edo888

    (@edo888)

    Hi,

    Can you provide more details of what you did exactly?

    The code I have provided is for displaying the language selector depending on the $condition variable. You have to write the condition yourself. If you do not show the language selector on some pages it will not appear and it will not translate the page.

    Thanks! 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.