• Resolved grgpeople

    (@grgpeople)


    Hello,

    Thank you so much for your plugin. It is awesome.
    I have a problem since…months ago, but I have not found the solution, so I will post it.
    I use the tisson template (from muffin) in my wordpress. I use content builder, sometimes, and I was able to translate the content with:
    <!--:es-->Spanish<!--:--><!--:en-->English<!--:-->
    modifying the template file like this:

    //$output .= '<h3>'. $title .'</h3>';// Original
    $output .= '<h3>'. __($title,'theme-name') .'</h3>';// qTranslate
    //$output .= do_shortcode($content);// Original
    $output .= __(do_shortcode($content),'theme-name');// qTranslate

    I only had to use those codes. But now, I have used diferent content item, and it does not go :((. I copy the complete function:

    if( ! function_exists( 'sc_one' ) )
    {
    	function sc_one( $attr, $content = null )
    	{
    		$output  = '<div class="column one">';
    		//$output .= do_shortcode($content);// Original
    		$output .= __(do_shortcode($content),'theme-name');// qTranslate-X
    		$output .= '</div>'."\n";
    
    	    return $output;
    	}
    }

    I did exactly the same change, and nothing. I see both languages together (without <!–:es–>…).
    Could anyone give me any advice, please? Thanks in advance.

    Regards

    https://wordpress.org/plugins/qtranslate-x/

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘qTranslate-X with tisson template’ is closed to new replies.