Last active
April 10, 2019 13:16
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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