• Hi,
    I noticed my wpml flags code was in red when I look at the HTML which seems to be due to some bugs in the code.

    There are 2 height tags output and extra set of opening closing commas around the 2nd height tag as follows:

    <img class=”wpml_flags” src=”mydomain/path-to/flags/ar.png ” height=”12″ ” height=”18″ ” alt=”ar” width=”18″ />

    This is a great plugin and it would be great if I could fix this error!

    Thank you.

    https://www.ads-software.com/plugins/wpml-flag-in-menu-extended/

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

    (@emeraldwave)

    Ok I fixed it with a temporary workaround by manually replacing the code with on line 168 of wpml-flag-in-menu-extended.php with this one:

    $new_items .= '<img width="18" height="12" ' . $i_class . ' src="' . $l['country_flag_url'] . '" alt="' . $l['language_code'] . '" />';

Viewing 1 replies (of 1 total)
  • The topic ‘Bug in HTML Code Output’ is closed to new replies.