Skip to content

Instantly share code, notes, and snippets.

@WordPress-Handbuch
Last active April 10, 2019 13:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save WordPress-Handbuch/7c2f3bca51d7c3f4a9db25ac1203344c to your computer and use it in GitHub Desktop.
Save WordPress-Handbuch/7c2f3bca51d7c3f4a9db25ac1203344c to your computer and use it in GitHub Desktop.
Change WordPress' "Read more" link text after the excerpt using the hook the_content_more_link
function wh_change_more_link() {
return '<a class="more-link" href="' . get_permalink() . '">Hier weiterlesen...</a>';
}
add_filter( 'the_content_more_link', 'wh_change_more_link' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment