WordPress.org

Ready to get started?Download WordPress

Forums

Anyone care to help with br tags? (8 posts)

  1. isdereks
    Member
    Posted 8 years ago #

    i'm in the process of creating a theme from scratch for my personal site at http://5thirtyone.com/ and am in a little bit of a rut.

    i have the base template up and running. nothing but active posts. everything else (comments, category links, etc.) will be added later.

    i noticed that my tags are not displaying correctly after i save posts.

    if anyone has some time i'd appreciate it if someone could point out my mistake.

    edit: after looking at the code it looks like the br tags are being removed and replaced with p tags. any insight?

  2. moshu
    Member
    Posted 8 years ago #

    If you are using the RTE:
    Enter = p tag
    Shift+Enter = br

  3. isdereks
    Member
    Posted 8 years ago #

    the issue isn't inserting tags. it's the way wp is being rendered. the br tags are not showing up in posts. i tried using both the rich text and plain html editor to add the tags but they are never displayed in the posts.

  4. moshu
    Member
    Posted 8 years ago #

    What do you mean by "displayed"?
    When looking at the source code of your site I see this:
    during these last three days.<br />

  5. isdereks
    Member
    Posted 8 years ago #

    see the screenshot

    http://img235.imageshack.us/img235/6678/capture0se.jpg

    there should be a line break after 'three days'.

  6. Direkt
    Member
    Posted 8 years ago #

    -- What? That looks like a line break. You have to do double <br> to have a line between. It's always been that way.

  7. moshu
    Member
    Posted 8 years ago #

    there should be a line break after 'three days'.

    There is.

  8. isdereks
    Member
    Posted 8 years ago #

    sorry. i was doing doubel br tags.

    i fixed the issue by removing the ie hack in the stylesheet. thanks guys.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.