Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Remove #more anchor
function slug_remove_morelink(){
remove_action( 'basic_after_post_excerpt', 'basic_the_more_link' );
add_action( 'basic_after_post_excerpt', 'slug_add_morelink' );
add_action( 'init', 'slug_remove_morelink', 20 );
function slug_add_morelink() {
do_action( 'basic_before_more_link' );
<p class="more-link-box">
<a class="more-link" href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><?php _e( 'Read more', 'basic' ); ?></a>
do_action( 'basic_after_more_link' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.