Hey,
I use WPML with a German and English Version on my Site.
I change the function.php to get in the Newsbox a “read more” Link under each news post, first in the German Version.
How I can get a Englisch Link Translation, how to change the function.php? Need help. :-)
Code:
function excerpt_read_more_link($output) {
global $post;
return $output . '<a>ID) . '"> > mehr lesen</a>';
}
add_filter('the_excerpt', 'excerpt_read_more_link');
if(isset($avia_config['use_child_theme_functions_only'])) return;
Please close!
The answer is:
function excerpt_read_more_link($output) {
global $post;
return $output . '<a class=more-link href="'. get_permalink($post->ID) . '">' . __('Read more', 'avia_framework') . '<span class="more-link-arrow"> →</a>';
}
add_filter('the_excerpt', 'excerpt_read_more_link');
if(isset($avia_config['use_child_theme_functions_only'])) return;
Translated the “Read more” in WPML Strings
Hey!
glad you found a solution by your own. Let us know in a new ticket if you have some more questions related to the theme. We are happy to assist you.
Best regards,
Andy