slider excerpt

  • fivestarswag

    #5074

    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!!!

    Mod

    Kenneth John Odle

    #30582

    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?

    Prasanna SP

    #30583

    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 ?>

    fivestarswag

    #30584

    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

    Josh

    #30585

    Prasanna has a great tutorial for child themes:

    http://www.prasannasp.net/graphene-child-theme-template/

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

You must be logged in to reply to this topic.