Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Wpautop breaks profile in a funny/strange way!

  • @panicky

    Participant

    Hi!
    First of all, English is not my first language so forgive me if I don’t know the terms and words correctly.

    I’ve been playing around with the layout in buddypress and customized it to my liking! But now I’ve stumbled upon a interesting problem.

    In the member profiles buddypress doesn’t recognize double word-wraps (paragraphs) at all. The text is just condensed and I really don’t know what to do about it.

    when I add a ‘wpautop’ to the bp-xprofile-filters.php to the ‘xprofile_get_field_data’ it does a funny, and irritating, thing.

    Whenever you edit the profile id adds a paragraph tag to the username seen in the buddypress toolbar on the upper right side of the screen and makes the name and last namne in different paragraphs.
    And it looks like this:

    Howdy
    Name
    Lastname

    I really don’t know how to get past this and prevent the wpautop to change the whole data instead of just the profile field mithe the text (in this case profile information about the user).

    Is there another way of doing this? ANd is it my fault, just because I rearranged the whole profile to my liking?
    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • @panicky

    Participant

    Forgot to link to the page I’m talking about!
    http://serieformedlingen.se/medlem/kingadukaj

    Is there maybe a way to create a function instead of using wpautop?
    Thank you!

    @panicky

    Participant

    And now I find that this is a known and ticketed bug in the Mulitline-textbox xprofile function. Last updated 3 months ago. Why does buddypress have a multiline-textboxfield at all if the issue is so hard to resolve?

    No wonder the wpautop breaks the profile.

    Anyway. Is there a way around this? any fixes or anything that can make the multiline field recognize br tags instead of ignoring them?

    Anyone?

    @panicky

    Participant

    And I resolved it simply.

    Just add

    #buddypress table.profile-fields p {
    	margin-top: 10px !important;
    	margin-bottom: 10px !important;
    }

    or the kind of margin you want, to a custom css, and voĆ­la!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Wpautop breaks profile in a funny/strange way!’ is closed to new replies.
Skip to toolbar