Support » Theme: Formation » Slider Text Length

  • 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:

    http://www.dinamitacostarica.com/natalia/

    Thank you !

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Slider Text Length’ is closed to new replies.