Slider Text Length (3 posts)

  1. susana_fernandez
    Posted 1 year ago #

    Hi ,

    I had the same problem with the text length in the image slider . It cuts off at the 13teen character or so . I know there was a threat for this problem already but i did what it says there and still is not working .

    my functions.php in the get_slider_excerpt() function is:

    function get_slider_excerpt(){
    $excerpt = get_the_content();
    $excerpt = preg_replace(" (\[.*?\])",'',$excerpt);
    $excerpt = strip_shortcodes($excerpt);
    $excerpt = strip_tags($excerpt);
    $excerpt = substr($excerpt, 0, 450);
    $excerpt = substr($excerpt, 0, strripos($excerpt, " "));
    $excerpt = trim(preg_replace( '/\s+/', ' ', $excerpt));
    return $excerpt;

    But is not respecting this 450 i put on $excerpt = substr($excerpt, 0, 450); still cuts the text at the 13theen character , I need to be as long as your demo .

    Here it is the site i'm building:


    Thank you !

  2. Template Express
    Theme Author

    Posted 1 year ago #

    Hello, if you add more words to your post they will appear in the slider text.

  3. susana_fernandez
    Posted 1 year ago #

    yes it's working !! sorry :)

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic


No tags yet.