• Resolved coxinha

    (@coxinha)


    First of all thanks for your plugin. Actually it works perfectly for me but there is one thing I can’t get resolved:

    I’d like to show my testimonials with excerpt and expand content in place. Problem here: If I click on read more link all line breaks are gone. Several of my testimonials are a bit long. Without line breaks it’s pretty uncomfortable to read.

    I’ve tried severals ways (manual and automatic excerpts with non-tag line breaks, <p> and <br>) without success. Only if I choose entire content line-breaks are not skipped.

    Looking for a solution I’ve found this 4 years old topic with the same problem: How to show line-breaks between paragraphs – should I use the same workaround?

    Thanks in advance for your help!!

    • This topic was modified 5 years, 9 months ago by coxinha.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello @coxinha,

    Thank you for letting us know about this!
    Yes, it seems the issue mentioned by that user still happens and we will investigate this and try to fix in our next update.
    In the meantime, please try the solution offered by the previous owner.

    The code is in this file: strong-testimonials/includes/deprecated.php
    Just a heads-up this did not work on my end, but maybe you’re luckier.

    I will also open a ticket regarding this on GitHub as well.

    All the best,
    Mihaela

    Hello @coxinha,

    We might’ve found a solution for this.
    Please go to this file: includes/functions-content.php
    and replace line 178 which is $text = wp_strip_all_tags( $text );
    with this code $text = strip_tags( $text, '<br>' );
    Then save and this should solve your issue.

    All the best,
    Mihaela

    • This reply was modified 5 years, 9 months ago by Miha. Reason: grammar
    Thread Starter coxinha

    (@coxinha)

    Hi Mihaela,

    thanks for your quicl reply and help.

    As far as I understand the code above it should avoid stripping of html tag <br> shouldn’t it? So I added twice <br> – with no result (deleted cache serveral times).

    I’m sorry to say but my problem still exists.

    So any suggestions?

    Thanks

    Thread Starter coxinha

    (@coxinha)

    Update: I’ve checked it again and it seems that the editor is removing all <br>-tags. This seems to be a “normal” problem of the old text editor.

    So I used <br class=""> instead of the <br> tag – and voilà there is my line break.

    Thanks a lot for your help which definitely works. ??

    thank you for letting me know! Happy to hear you got it to work.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to show line-breaks between paragraphs’ is closed to new replies.