text translation in custom heading

Support Forums for LiveMesh Themes & Plugins Forums Enigmatic Theme Support text translation in custom heading

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #688


    I’m using qTranslate and can’t seem to be able to translate my text into French in the custom heading. I’ve tried using the quick tags [:en] and the language tags <!–:en–><!–:–>

    What’s the proper way to do this?



    Needs code change for this. The theme does not explicitly support this plugin but this issue can be fixed with a simple code change as described below. Tested it and works fine. Pls replace the function mo_get_custom_heading() in the file [theme directory]/framework/functions/utility-functions.php with the one below –

    function mo_get_custom_heading() {
        $output = '';
        $custom_heading = __(get_post_meta(get_queried_object_id(), 'mo_custom_heading_content', true));
        if (!empty ($custom_heading)) {
            $output .= $custom_heading;
        return $output;

    You should look for line numbers 396 to 402. Then you should see the custom titles in your language. Tested out with the following syntax for English and Spanish languages –

    About UsKompetensområden

    English Title goes hereSpanish Title goes here.
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Enigmatic Theme Support’ is closed to new topics and replies.