WordPress.org

Forums

Formation
Slider Text Length (3 posts)

  1. susana_fernandez
    Member
    Posted 11 months 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:

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

    Thank you !

  2. Template Express
    Member
    Theme Author

    Posted 11 months ago #

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

  3. susana_fernandez
    Member
    Posted 11 months ago #

    yes it's working !! sorry :)

Reply

You must log in to post.

About this Theme

About this Topic

Tags

No tags yet.