• Resolved vik3d

    (@vik3d)


    Hello,

    Has anyone found a solution on how to get menu description translated with qTranslate?
    By trying the usual <!--:en-->text goes here...<!--:--> method only the text is saved after edited description field.

    Thanks!

    vik3d

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

    (@vik3d)

    I found this cube3x and it worked!

    I added these lines to the theme’s functions.php

    remove_filter('nav_menu_description', 'strip_tags');
    add_filter( 'wp_setup_nav_menu_item', 'cus_wp_setup_nav_menu_item' );
    function cus_wp_setup_nav_menu_item($menu_item) {
        $menu_item->description = apply_filters( 'nav_menu_description',  $menu_item->post_content );
        return $menu_item;
    }

    After that all html codes stay in the menu description textboxes and it made the translation work as I wanted.

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: qTranslate] Translate menu description’ is closed to new replies.