WYSIWYG without p but with br

Support General WYSIWYG without p but with br

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #10987
    NickNick
    Participant

    Using Builder, I have a WYSIWYG field that I will be outputting using Beaver Themer.

    I would like the field to store <br> (Shift + Return), but not wrap the whole thing in <p>.

    If I uncheck "Save data in raw format", it keeps the <br> but adds <p>. If I check it, it removes both.

    What should I do?

    #10989
    Anh TranAnh Tran
    Keymaster

    Hi Nick,

    The fields uses either <p> or no tags at all. It doesn't use only <br> tag.

    I've just tested with Themer's text module and it seems to always output <p> tag, no matter what the data is. I'm wondering why don't you use the <p> tag.

    #11012
    NickNick
    Participant

    In the output I'm trying to create, I have a line of static text followed by the output from a WYSIWYG field. <p> provides significantly more spacing than <br> and in this specific application it looks bad. What I'm trying to output is <p>my static text<br>first line of WYSIWYG output text<br>second line of WYSIWYG output text</p>

    #11018
    Anh TranAnh Tran
    Keymaster

    Hi Nick,

    I understand. However, the problem is Beaver Themer auto outputs text using wpautop, which wraps text in <p> tag.

    Why don't you use CSS to reduce the spacing? I think it's fast and works.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.