Slider Text Length
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:
$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));
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 !
- The topic ‘Slider Text Length’ is closed to new replies.