Thank you very much, It now works.
It doesn’t work. This code only works if the plugin is not active, but if the plugin is active, the code doesn’t work.
I want people to be able to click on the excerpt text it self.
I found this code:
function clickable_excerpt( $excerpt ) {
return '<a href="'. get_the_permalink() .'">'. preg_replace( '|</?a.*?>|i', '', $excerpt ) .'</a>';
}
add_filter( 'get_the_excerpt', 'clickable_excerpt' );
But I dont know how to adapt it.
Thank you.