Skip to content

Instantly share code, notes, and snippets.

Created January 20, 2016 15:34
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 anonymous/2bd7cab13bfc1751fa31 to your computer and use it in GitHub Desktop.
Save anonymous/2bd7cab13bfc1751fa31 to your computer and use it in GitHub Desktop.
<?php
// Seitensprung bei Klick auf "Weiterlesen" entfernen
function ah_remove_more_jump_link($link) {
$offset = strpos($link, '#more-');
if ($offset) {
$end = strpos($link, '"',$offset);
}
if ($end) {
$link = substr_replace($link, '', $offset, $end-$offset);
}
return $link;
}
add_filter('the_content_more_link', 'ah_remove_more_jump_link');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment