• Resolved vitalyc

    (@vitalyc)


    How to hide this message “For the sake of viewer convenience, the content is shown below in the alternative language. You may click the link to switch the active language.

    This message always displayed when I use
    Show content in an alternative language when translation is not available for the selected language.
    in configuration->General.

    This message always in english and I can’t hide it. Check the picture

    How I can show the alternative contentb but hide this message ?

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

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

    (@grafcom)

    @vitalyc

    For the sake of viewer convenience, the content is shown below in the alternative language. You may click the link to switch the active language.

    This text is meant to make visitors clear that there is no translation of that page.
    This is not to turn off with a setting.
    If only the content would be displayed, it could be confusing.

    A workaround to reach this anyway, is to copy the deafault content in the other language page.

    Thread Starter vitalyc

    (@vitalyc)

    Is it possible to add on/off for this to settings ?

    Thread Starter vitalyc

    (@vitalyc)

    Maybe someone need idea, how to fixed…
    Add to functions.php

    function removeWarning_qTranslateX($content) { //remove text from qTranslateX plugin Version 3.4.2
        $new_content = str_replace(
            "For the sake of viewer convenience, the content is shown below in the alternative language. You may click the link to switch the active language.",
            "",
            $content
        ) ;
    
        $new_content = str_replace(
            "For the sake of viewer convenience, the content is shown below in one of the available alternative languages. You may click one of the links to switch the site language to another available language.",
            "",
            $new_content
        ) ;
    
        return $new_content;
    }
    add_filter('the_content', 'removeWarning_qTranslateX', 99);

    Simple solution, hide the message via css:
    .qtranxs-available-languages-message { display:none }

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to hide language suggestion message ?’ is closed to new replies.