WordPress.org

Support

Support » Plugins and Hacks » [Plugin: qTranslate] Language selector active class disappreared

[Plugin: qTranslate] Language selector active class disappreared

Viewing 2 replies - 1 through 2 (of 2 total)
  • Me too…

    with the code
    <?php echo qtrans_generateLanguageSelectCode('text'); ?>

    I get active="" instead of class="active".

    So I changed it to
    <?php echo qtrans_generateLanguageSelectCode('both'); ?>

    and added these to my css.

    #header .qtrans_flag_en, #header .qtrans_flag_fr {background: none;}
    #header .qtrans_flag_and_text {padding:0;}

    I think this is due to a slight implementation issue with a patch I sent in, here’s the amendment needed to fix the problem:

    85c85
    <                               echo '<li class='. implode(' ', $classes) .'><a href="'.qtrans_convertURL($url, $language).'"';
    ---
    >                               echo '<li class="'. implode(' ', $classes) .'"><a href="'.qtrans_convertURL($url, $language).'"';

    Have notified Qian about this via email.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: qTranslate] Language selector active class disappreared’ is closed to new replies.