• Resolved Argentum

    (@argentum)


    Hi,

    I can’t translate the link CONTINUE READING in the Details panel. Trying with Loco Translate. Is it translatable?

    <a class="dgwt-wcas-product-details-readmore" >continue reading</a>
Viewing 1 replies (of 1 total)
  • Hi @argentum

    You can use this code to translate this text:

    // Translate CONTINUE READING to custom text
    add_filter( 'gettext', function ( $translated_text, $text, $domain ) {
    	if ( 'CONTINUE READING' === $translated_text ) {
    		$translated_text = 'YOUR TRANSLATION';
    	}
    
    	return $translated_text;
    }, 20, 3 );

    You have two ways to add this code to your theme:

    1. Open the functions.php in your child theme and add the code at the end.
    2. or install the Code Snippets plugin and apply this code as a snippet.

    If your product is an external product, then you have to translate it directly by editing the product. You will find the field in the “General” tab.

    Regards,
    Kris

Viewing 1 replies (of 1 total)
  • The topic ‘Translate Details panel CONTINUE READING’ is closed to new replies.