Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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.

    http://awesomescreenshot.com/0ecoh033f

    #56207

    halo?

    #56208
    #56210

    Hi,

    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 :)

    #56211

    Thanks a lot Chris! It looks perfect:)

    #56212

    Glad that I could help :)

    #56213

    That helped me as well. Thank you!

    #56214

    Hi idina,

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

    Cheers,

    Ismael

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

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