Linefeed @ Hover on front slider

Viewing 6 posts - 1 through 6 (of 6 total)
  • #15592
    Chris@
    Participant

    hi,

    maybe just a trivial question. I’m trying to achieve a linefeed whit in a blogpost, which’s used at the front slider. Unfortunately linebreak/linefeeds are ignored, which leads to the result, that all lines of text are placed within one line in the hover.

    feedback’s appreciated!

    #15641
    Daniel Tara
    Keymaster

    Try inserting the text in the excerpt field which does not strip linebreaks. Alternatively you can add this line in functions.php but that may have some unintended consequences:

    remove_filter( 'get_the_excerpt' 'wp_trim_excerpt' );
    #15921
    Chris@
    Participant

    Thanks for your reply.

    What do you mean with “experts fields”? i can chose between two forms for entering blogposts text in the backend.

    Due to my german installation they are called.
    • Visuell
    • Text

    Both cut line breaks. Help’s appreciated!

    #15922
    Chris@
    Participant

    Indeed, editing functions.php caused my site NOT to load any longer 🙁

    #15952
    Daniel Tara
    Keymaster

    When editing a post you should have a field called “Excerpt” under the text editor. If you don’t see it try opening the “Screen Options” menu in the top-right corner and check the “Excerpt” box.

    You can restore your functions.php file from here.

    #15962
    Chris@
    Participant

    SOLVED!

    Thank you for guiding me!

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

You must be logged in to reply to this topic.