slider excerpt

  • fivestarswag


    Is there anyway too limit the amount of characters in excerpt for the slider?

    Thanks for being so helpful…I’m almost ready to launch!!!


    Kenneth John Odle


    Yes, but you need a child theme.

    Basically, you set a global excerpt length, and then you set a slider excerpt length. (Untested, so I’m not sure if it will work.)

    Are you using a child theme, or do you feel up to implementing one?



    Throw this in your child theme’s functions.php file

    function graphene_custom_slider_excerpt_length(){
    graphene_set_excerpt_length( 30 );
    add_action( 'graphene_before_slider', 'graphene_custom_slider_excerpt_length' );

    Change 30 to whatever number (words).

    If your child theme functions.php file is empty, add <?php at the beginning of the code and close it with ?>



    unfortunately I’m a beginner so I dont really understand the terminology….i looked in my editor but didn’t see anything about a child theme



    Prasanna has a great tutorial for child themes:

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

  • You must be logged in to reply to this topic.
Graphene Themes Forum