Title: Slider Text Length
Last modified: August 21, 2016

---

# Slider Text Length

 *  Resolved [GavinR121](https://wordpress.org/support/users/gavinr121/)
 * (@gavinr121)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/slider-text-length/)
 * Hi there
 * Firstly many thanks for your theme, it looks great and so far very easy to use.
 * I just have a small question regarding the text that goes in boxes over the Homepage
   Slider. I have created a post with the correct Featured category setting and 
   used the featured image too and all works fine. It’s just that the text I have
   put in the main text area (which appears in the black faded box over the image)
   seems to be cut off after just 12 or 13 words. Is there a way to increase to 
   the word count that displays here like in your demo of the theme?
 * My site is work in progress at: [http://www.redwing-hosting.com/ianallan/](http://www.redwing-hosting.com/ianallan/)
 * Thank you in advance for any advice you can give here.
 * Gavin

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Theme Author [Template Express](https://wordpress.org/support/users/danstriker/)
 * (@danstriker)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/slider-text-length/#post-4658822)
 * Hello, in the functions.php file look for slider excerpt length and increase 
   to suit your needs
 *  Thread Starter [GavinR121](https://wordpress.org/support/users/gavinr121/)
 * (@gavinr121)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/slider-text-length/#post-4658835)
 * Hi Ossie
 * Many thanks for your quick reply.
 * Sorry but I can only find the following code relating to in functions.php and
   don’t see this. Should I be looking somewhere else?
 * /**
    * Implement excerpt for homepage slider */ function get_slider_excerpt(){
   $excerpt = get_the_content(); $excerpt = preg_replace(” (\[.*?\])”,”,$excerpt);
   $excerpt = strip_shortcodes($excerpt); $excerpt = strip_tags($excerpt); $excerpt
   = substr($excerpt, 0, 150); $excerpt = substr($excerpt, 0, strripos($excerpt,”“));
   $excerpt = trim(preg_replace( ‘/\s+/’, ‘ ‘, $excerpt)); return $excerpt; }
 *  Theme Author [Template Express](https://wordpress.org/support/users/danstriker/)
 * (@danstriker)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/slider-text-length/#post-4658839)
 * no that’s the correct bit – change the 150 to increase the excerpt length
 *  Thread Starter [GavinR121](https://wordpress.org/support/users/gavinr121/)
 * (@gavinr121)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/slider-text-length/#post-4658844)
 * Hi again
 * That’s what I thought I tried that but it didn’t do anything. Just me being thick
   I think as it’s working absolutely fine now though!
 * Many thanks again your your help much appreciated.
 *  Theme Author [Template Express](https://wordpress.org/support/users/danstriker/)
 * (@danstriker)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/slider-text-length/#post-4658855)
 * OK good to hear you got it working. Good luck with your website.
 *  [susana_fernandez](https://wordpress.org/support/users/susana_fernandez/)
 * (@susana_fernandez)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/slider-text-length/#post-4659110)
 * Hi,
 * I have the same problem and i can’t fix it yet . I changed functions.php like
   this :
 * 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; }
 * and still cuts the text at the 15teen character .. what else can I do to try 
   and fix it , i want the same length as your demo,
 * my site in progress:
 * [http://www.dinamitacostarica.com/natalia/](http://www.dinamitacostarica.com/natalia/)
 * i love your theme , thank you ,
 * susana

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Slider Text Length’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/formation/2.4.4/screenshot.png)
 * Formation
 * [Support Threads](https://wordpress.org/support/theme/formation/)
 * [Active Topics](https://wordpress.org/support/theme/formation/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/formation/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/formation/reviews/)

## Tags

 * [text](https://wordpress.org/support/topic-tag/text/)

 * 6 replies
 * 3 participants
 * Last reply from: [susana_fernandez](https://wordpress.org/support/users/susana_fernandez/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/slider-text-length/#post-4659110)
 * Status: resolved