WordPress.org

Ready to get started?Download WordPress

Forums

Replacing <BR> element with <P> in entries? (6 posts)

  1. OpenDNA
    Member
    Posted 9 years ago #

    What I want: a couple em between each paragraph in an entry.

    Problem: carriage returns are interpreted at 'BR' elements.

    Why This is a Problem: CSS does not allow assignment of attributes to 'BR' elements.

    Solution: Replace 'BR' interpretation of carriage returns with 'P' element. e.g. replace <BR> with </P><P>

    Question: How do I get WordPress to do that?

    Critical Info: I'm using 'Textile 1' (but willing to change to another editor plug-in).

  2. eridan
    Member
    Posted 9 years ago #

    Margin between paragraphs are handled by CSS, I can't see why you want to use
    ?

  3. eridan
    Member
    Posted 9 years ago #

    why you want to use br.

  4. OpenDNA
    Member
    Posted 9 years ago #

    I don't want to use br but that's what WordPress is using for line breaks within entries. Until I can change this, margins do me no good because they can only be used on paragraphs.

    The question is: How do I get WP to use paragraphs instead of line breaks in .entries? Would changing to another editor plugin help? Suggestions?

  5. rwatkins
    Member
    Posted 9 years ago #

    Hey,

    If you use a double carriage return between your lines then WordPress inserts a <p>, otherwise it puts in a <br/>.

    So next time, press "Return" twice instead of once!

    Rob

  6. OpenDNA
    Member
    Posted 9 years ago #

    rwatkins: You da man. Thank you.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.