Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
  • #6995

    When you look at my portfolio page, I hope you agree that the different length of excerpts doesn’t look great. Sometimes I can’t write whatever, and is empty. How can I adjust exceprts in Brightbox to be the same? By the number of characters / words or lines?

    + […] at the end.





    excuse me for the delayed response.

    In your functions.php you can add this to the bottom:

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

    the number 30 should resemble the number of words to be put in your excerpt. Be sure you don’t have a custom excerpt set (this can be done when creating a post or page => at the bottom of the editor), because the code I’m giving you gets overwritten by the custom excerpt.

    I hope this helps :)


    Thanks a lot Chris! It looks perfect:)


    Glad that I could help :)


    That helped me as well. Thank you!


    Hi idina,

    Glad that this thread helped to solve your problem. :)



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

The topic ‘length of excerpt in the portfolio’ is closed to new replies.