Hi there,
The read more
should be translatable within your language files. The code responsible for that is this,
return ' ... <div><a href="' . get_permalink() . '" class="more-link">' . __( 'Read More', '__x__' ) . '</a></div>';
Hence, you can translate it with mo/po files which usually named __x__-ar
within’s theme’s language folder. But when I checked your site’s code, yes, it’s actually an English page where the strings are only changed to Arabic. It’s not a real translation. In that case, please add this code to your child theme’s functions.php
function x_excerpt_string( $more ) {
$stack = x_get_stack();
if ( $stack == 'integrity' ) {
return ' ... <div><a href="' . get_permalink() . '" class="more-link">' . __( 'اقرأ أكثر', '__x__' ) . '</a></div>';
} else if ( $stack == 'renew' ) {
return ' ... <a href="' . get_permalink() . '" class="more-link">' . __( 'اقرأ أكثر', '__x__' ) . '</a>';
} else if ( $stack == 'icon' ) {
return ' ...';
} else if ( $stack == 'ethos' ) {
return ' ...';
}
}
add_filter( 'excerpt_more', 'x_excerpt_string' );
And since there is no actual translation, the code can’t detect the language being loading. Hence, it will remain اقرأ أكثر
regardless of language.
Thanks!