• How can I translate “You Might Also Like”? I can’t find it in the string translation of WPML. My site is multilingual. Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author faycalboutam

    (@faycalboutam)

    I don’t have the plugin to test this, but does it work if you changed this code in wp-content\plugins\expand-divi\inc\features\ExpandDiviRelatedPosts.php:

    $html.= '<h2>' . esc_html( $related_posts_title ) . '</h2>';

    To:

    $html.= '<h2>' . __( esc_html( $related_posts_title ), 'expand-divi' ) . '</h2>';

    Thread Starter shadaliza

    (@shadaliza)

    If I make changes on the php file that would change it for all languages, I only want to change it for Dutch and leave it for English.

    Plugin Author faycalboutam

    (@faycalboutam)

    This is how WPML recommends adding dynamic strings, after doing that you should be able to detect the string with WPML and translate it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Translate You Might Also Like’ is closed to new replies.