WordPress.org

Support

Support » Plugins and Hacks » qTranslate » Show qtranslate in the menu

Show qtranslate in the menu

Viewing 2 replies - 1 through 2 (of 2 total)
  • I did the following, using the twentytewlve theme

    Basically you call the qtrans_generateLanguageSelectCode() function.

    //wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-menu' ) );
    $html = wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-menu', 'echo'=>'0' ) );
    $html = preg_replace("/<\/ul>/", "<li style='float: right; margin-top:15px; margin-right: -15px' >".qtrans_generateLanguageSelectCode('image', '', true)."</li></ul>", $html, 1);
    echo $html;

    Hey etiennesky,

    Where do you put thse lines of code please?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Show qtranslate in the menu’ is closed to new replies.
Skip to toolbar