Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #501568

    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;
    • This topic was modified 9 years, 1 month ago by bur2000.
    #501651

    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

    • This reply was modified 9 years, 1 month ago by bur2000.
    #501810

    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

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.