I tried adding this to the functions-carousel-slider.php but it doesn’t work….any suggestions on how replace the ellipses with a read more link?
apply_filters( ‘carousel-slider__post’, ‘sp_read_more_custom_excerpt’ );
function sp_read_more_custom_excerpt( $text ) {
if ( strpos( $text, ‘[…]’) ) {
$_excerpt = str_replace( ‘[…]’, ‘[Read More…]…‘, $text );
} else {
$_excerpt = $text . ‘[Read More…]‘;
}
return $_excerpt;
}
There is no way without modifying source code.
Go to plugin folder
carousel-slider –> templates –> public
and open post-carousel.php on text editor.
go to line number 31. You will get the following line.
$_excerpt = wp_trim_words( wp_strip_all_tags( $post->post_content ), '20', ' ...' );
replace this line with the following line
$_excerpt = wp_trim_words( wp_strip_all_tags( $post->post_content ), '20', ' [Read More]...' );
I am working for version 2.0.0 for making more user friendly but I don’t know when I will able to complete it.
Make sure after releasing each version, you change this line.
Thanks
-
This reply was modified 7 years, 5 months ago by
Sayful Islam.
Thank you! Im getting a white page on my home page though when I change that. Let me know if you have any other suggestions. I look forward to the new version. Its a really great plug in! Appreciate your efforts!
Is there a way to donate to support the plug in?