How to change "Read More" text?

I'm using blogstart wordpress theme and I would like to change Read more text to something similar to language than I'm using. How can I do that? I already tried to paste code below to functions.php.

Replaces the excerpt Read More text by a link
function modify_read_more_link() {
return 'a class=read-article href=' . get_permalink() . 'Your Read 
More Link Text/a';
}
add_filter( 'the_content_more_link', 'modify_read_more_link' );

// Replaces the excerpt Read More text by a link
function new_excerpt_more($more) {
   global $post;
return 'a class=read-article href='. get_permalink($post-ID) . ' 
Read the full article.../a';
}
add_filter('excerpt_more', 'new_excerpt_more');

Can someone help me with that? Thank you!

Topic read-more php plugin-development plugins Wordpress

Category Web


add_filter('gettext', 'translate_my_text' );
function translate_my_text($translated) { 
$translated = str_ireplace('Leave a comment on: “%s”', 'my text“%s”', $translated);
$translated = str_ireplace('Leave a Comment', 'my text', $translated);
$translated = str_ireplace('Read More', 'my text', $translated);
$translated = str_ireplace('READ MORE', 'my text', $translated);
return $translated; 
} 

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.