WordPress.org

Ready to get started?Download WordPress

Forums

qTranslate
Language selector active class disappreared (3 posts)

  1. sfradel
    Member
    Posted 3 years ago #

    Language selector active class disappreareds and now it appears as an attribute.

    http://wordpress.org/extend/plugins/qtranslate/

  2. dew_h2o
    Member
    Posted 3 years ago #

    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;}
  3. EdwardIII
    Member
    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags