Title: Functions.php &#8211; text length in slider
Last modified: August 22, 2016

---

# Functions.php – text length in slider

 *  Resolved [Jasnick](https://wordpress.org/support/users/jasnick/)
 * (@jasnick)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/functionsphp-text-length-in-slider/)
 * I’m having the same issues as previous posters in trying to increase the amount
   of text I can put in the home page slider black box.
    I changed the **$excerpt
   = substr($excerpt, 0, 150);** to 300 in the parent functions.php but it has made
   no difference.
 * Does anyone have any ideas? Thanks

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

 *  Theme Author [Template Express](https://wordpress.org/support/users/danstriker/)
 * (@danstriker)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/functionsphp-text-length-in-slider/#post-5263909)
 * Hello,
 * in the functions.php file under * Implement excerpt for homepage slider
    */ change
   the following line: $excerpt = substr($excerpt, 0, 150);
 *  Thread Starter [Jasnick](https://wordpress.org/support/users/jasnick/)
 * (@jasnick)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/functionsphp-text-length-in-slider/#post-5263914)
 * I notice in another post you replied to you mention that some things need to 
   be removed from functions.php:
    “To have full length text remove the following
   from functions.php: $excerpt = substr($excerpt, 0, 150); To remove the last word
   truncation reove the following from functions.php: $excerpt = substr($excerpt,
   0, strripos($excerpt, ” “));”
 *  Thread Starter [Jasnick](https://wordpress.org/support/users/jasnick/)
 * (@jasnick)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/functionsphp-text-length-in-slider/#post-5263924)
 * I followed the above instructions and now it is as it should be
 * Thanks!
 *  [ChrissyPilczak](https://wordpress.org/support/users/chrissypilczak/)
 * (@chrissypilczak)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/functionsphp-text-length-in-slider/#post-5264119)
 * Do you know how to have no text at all so its just an image that shows?
 *  Theme Author [Template Express](https://wordpress.org/support/users/danstriker/)
 * (@danstriker)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/functionsphp-text-length-in-slider/#post-5264120)
 * Add the following style:
 *     ```
       .caption_wrap {
       display: none;
       }
       ```
   

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

The topic ‘Functions.php – text length in slider’ 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/)

 * 5 replies
 * 3 participants
 * Last reply from: [Template Express](https://wordpress.org/support/users/danstriker/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/functionsphp-text-length-in-slider/#post-5264120)
 * Status: resolved