The str_replace function looks for […] and replaces it with customized html text. Change it to fit your needs.

/**
 * Snippet Name: replace excerpt […] with custom html
 * Snippet URL: https://www.wpcustoms.net/snippets/replace-excerpt-with-custom-html/
 */
  function wpc_replace_excerpt($content) {
       return str_replace('[...]',
               '

‘, $content ); } add_filter(‘the_excerpt’, ‘wpc_replace_excerpt’);

0 0 vote
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x