Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1399533

    Kriesi:

    This question is specific to Search Results page. When I search for a specific term, the results page shows the results as it should. Search works great. Each post (in my case) shows an excerpt followed by […]

    I would like to change the […] to Read More with a link to the full post. OR, as an alternate method, make the […] a link to the main story. I know that the post heads are linked, but my users seem to be thrown by the […] not being clickable as they have learned in web browsing that these do something.

    I guess as a third option, we could just hide these. The fact that they are there but not clickable seems to be the issue.

    #1399605

    Hey William,

    Thank you for the inquiry.

    You can add this filter in the functions.php file to append a read more link to the excerpt.

    add_filter( 'excerpt_more', '__return_empty_string', 21 );
    function wpse_134143_excerpt_more_link( $excerpt ) {
        if( is_search() ) {
            $excerpt .= sprintf( 
                '... <a href="%s">%s</a>.',
                esc_url( get_permalink() ),
                __( 'Read more' )
            );
        }
    
        return $excerpt;
    }
    add_filter( 'the_excerpt', 'wpse_134143_excerpt_more_link', 21 );
    

    Best regards,
    Ismael

    #1399689

    Thank you for the excellent support Ismael. As always. Your team is top notch. This worked for my needs. You can close this request. —Bill

    #1399755

    Hi billbasler,

    I’m glad that Ismael could help you :)
    Thanks for using Enfold and have a great day!

    Best regards,
    Nikko

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Search Results, Post Excerpt, Three Dots’ is closed to new replies.