Lieber alchymyth, danke! Habe entsprechenden code am Ende der functions.php von twenty fourteen hinzugefügt. - Funktioniert auf Anhieb.
function remove_more_link_scroll( $link ) {
$link = preg_replace( '|#more-[0-9]+|', '', $link );
return $link;
}
add_filter( 'the_content_more_link', 'remove_more_link_scroll' );
Wenn ich aber statt dessen ein twentyfourteen_child Verzeichnis und darin die folgende functions.php anlege, funktioniert es leider nicht. - Was mache ich bitte falsch?
<?php
function twentyfourteen_child_remove_more_link_scroll( $link ) {
$link = preg_replace( '|#more-[0-9]+|', '', $link );
return $link;
}
add_filter( 'the_content_more_link', 'remove_more_link_scroll' );
?>
das funktioniert auch nicht:
<?php
function remove_more_link_scroll( $link ) {
$link = preg_replace( '|#more-[0-9]+|', '', $link );
return $link;
}
add_filter( 'the_content_more_link', 'remove_more_link_scroll' );
?>