• Resolved Angelsrock

    (@angelsrock)


    Thank you for a great slider!! Im using PHP 7.1 and would like to add “Read More” below my excerpts and have it be linked to the post.

    Do you have the way to add this?

    Thanks so much!!

    • This topic was modified 6 years, 9 months ago by Jan Dembowski. Reason: De-capped topic title. No yelling please

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Angelsrock

    (@angelsrock)

    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;
    }

    Plugin Author Sayful Islam

    (@sayful)

    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 6 years, 9 months ago by Sayful Islam.
    Thread Starter Angelsrock

    (@angelsrock)

    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!

    Thread Starter Angelsrock

    (@angelsrock)

    Is there a way to donate to support the plug in?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘add read more permalink to excerpt’ is closed to new replies.