• Hi!,

    When I type “excerpt” in a post the “read more” button does not show.

    If there is no excert entered, the button shows.

    How to make the button visible when excerpt is entered.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Hi @hazh, sorry for the long delay.

    Please correct me if I am wrong, however, it is the default behavior of WordPress.

    You might want to try adding the following snippet to have the Read more link even when the Posts have custom excerpt.

    function new_excerpt_more($more) {
        return '';
    }
    
    add_filter('excerpt_more', 'new_excerpt_more', 21 );function the_excerpt_more_link( $excerpt ){
        $post = get_post();
        $excerpt .= '<p class="read-more"><a class="ast-button" href="'. get_permalink($post->ID) . '">Read more ?</a></p>';
        return $excerpt;
    }
    
    add_filter( 'the_excerpt', 'the_excerpt_more_link', 21 );

    Let us know if you need more help, otherwise please mark the topic as Resolved.

    Kind regards,
    Herman ??

Viewing 1 replies (of 1 total)
  • The topic ‘No “read more” button on default blog loop’ is closed to new replies.