Custom Fields
Re-Envisioned
Support General WYSIWYG without p but with br

  • Creator
    Topic
  • #10987
    Nick
    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?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #10989
    Anh 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
    Nick
    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 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 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.