Custom & Shorter Excerpts

  • Jaysilver21

    #5265

    On my site I’m not using a static front page, but want to make my post excerpts shorter and customize them. How would I do this?

    Prasanna SP

    #31358
    Quote:
    ..want to make my post excerpts shorter..

    Add this to your child theme’s functions.php file.

    function custom_excerpt_length($length) {
    return 30;
    }
    add_filter('excerpt_length', 'custom_excerpt_length');

    This limits excerpt length to 30 words. You can change it to suite your needs. Or, you can try this plugin – Advanced Excerpt

    Just a suggestion, add this code to custom CSS to remove the bullets for social sharing icons on posts.

    .wp-socializer ul li {
    list-style: none;
    list-style-type: none;
    }
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.