Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #865787

    Hi guys,

    I used this in my functions.php to change the post excerpt length to 100 characters:

    add_filter('avf_masonry_excerpt_length','avia_change_masonry_excerpt_length', 10, 1);
    function avia_change_masonry_excerpt_length($length)
    {
       $length = 100;
       return $length;
    }

    No I notice, related or not, I’m not sure, that the excerpt includes line breaks ( <br> ), where in the original text this can be endings of paragraphs or headings. Is there some way to remove these breaks, and have the excerpt as one long text. Thanks!

    #866254

    Hey lijndiensten,

    Please try adding this code to the Quick CSS section under Enfold > General Styling or to your child theme’s style.css file:

    .av-masonry-entry-content.entry-content br {
        display: none;
    }
    

    Best regards,
    Yigit

    #866404

    That is one subtle solution! Like a charm, thanks.

    #866430

    Hi,

    You are welcome! :)

    For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
    And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
    For any other questions or issues, feel free to post them here on the forum and we will gladly try to help you :)

    Best regards,
    Yigit

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Remove Line breaks in Masonry post excerpts’ is closed to new replies.