• Resolved mochonty

    (@mochonty)


    Hello again,
    I want to change the words “read more” to spanish, how can I do this? Or is this not possible? One file must be edited, but which one? Does anybody know?

Viewing 2 replies - 1 through 2 (of 2 total)
  • If you are using the twentyten theme, there is a Spanish translation: http://wordpress.org/support/topic/twenty-ten-spanish-translation-traduccion-al-espanol.

    If you only want to translate that one phrase and not the whole twentyten theme, then look for the function called twentyten_continue_reading_link in functions.php (about line 241) and change the text in there.

    If you’re not using twentyten theme, try this (you’ll need to put it in your functions.php file and change REPLACE_ME for your Spanish text):

    function spanish_continue_reading_link() {
    	return ' <a href="'. get_permalink() . '">REPLACE ME &rarr;</a>';
    }
    
    add_filter( 'excerpt_more', 'spanish_auto_excerpt_more' );
    
    function spanish_auto_excerpt_more( $more ) {
    	return ' &hellip;' . spanish_continue_reading_link();
    }
    
    add_filter( 'get_the_excerpt', 'spanish_custom_excerpt_more' );
    
    function spanish_custom_excerpt_more( $output ) {
    	if ( has_excerpt() && ! is_attachment() ) {
    		$output .= spanish_continue_reading_link();
    	}
    	return $output;
    }
    Thread Starter mochonty

    (@mochonty)

    Thank you very much. I use Celestial Aura, but I will try that. I hope it works.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘"read more" break text in spanish’ is closed to new replies.