• Is it possible to hide the Language selection on specific pages?

    For example if you are on the English version of the site hide the ENG link in the header or if you’re on the Spanish version hide the ESP link from the header link selection?

    I am using this code to invoke the language menu in a text widget.

    <ul style="font-size:10px;" id="qtranslate-2-chooser" class="qtrans_language_chooser">
    <li class="lang-en"><a title="English" hreflang="en" href="https://mirasco.ydodev.com/en/"><span>ENG</span></a></li>
    <li class="lang-es"><a title="Espa?ol" hreflang="es" href="https://mirasco.ydodev.com/es/"><span>ESP</span></a></li>
    <li class="lang-es"><a title="Arabic" hreflang="" href="https://arabic.mirasco.ydodev.com"><span>????</span></a></li>
    </ul>

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

Viewing 1 replies (of 1 total)
  • Thread Starter plex0r

    (@plex0r)

    I have resolved this for anyone else that needs it,.

    in q_translate_widget.php

    $classes[] = 'active,"style="display:none;"';
    				echo '<li class="'. implode(' ', $classes) .'"><a href="'.qtrans_convertURL($url, $language).'"';
Viewing 1 replies (of 1 total)
  • The topic ‘Hide Lanuage Link for Specific Pages’ is closed to new replies.