Any way to change the excerpt length?

  • jamesmself


    I tried to use the plugin Excerpt Length, but graphene must override the WordPress settings. Any place to do this in the CSS code for graphene?



    Syahir Hakim


    Put this code inside your child theme’s functions.php file:

    function graphene_remove_filters(){
    remove_filter('excerpt_length', 'graphene_excerpt_length');
    add_action('init', 'graphene_remove_filters');

    Be warned though that if you’re using background image and excerpt for your slider, the excerpt that will be displayed may be a bit too long for the space.

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

  • You must be logged in to reply to this topic.