Skip to:
Content
Pages
Categories
Search
Top
Bottom

Profile Field Description removes target="_blank" from links

  • Avatar of Alan Niemies
    Alan Niemies
    Participant

    @alanniemies

    Hello guys.

    I’m today having another issue on one of my BuddyPress developments: I need to add links on my Field Descriptions at Profile Fields for them to open on a new tab. This is a way for people to read some information before keep going with the registration form.

    I can create the links, but unfortunately BuddyPress removes the target=”_blank” (as well as manipulates other HTML information) on the field after we save it.

    Do you guys know where BuddyPress handles this so I can change it or a way to achieve a target_blank on Field Description?

    Thanks a lot!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Avatar of Alan Niemies
    Alan Niemies
    Participant

    @alanniemies

    Anyone?

    Avatar of haykayltduk
    haykayltduk
    Participant

    @haykayltduk

    In bp-xprofile-class.php around line 879.

    Basically the field is stoerd using esc_attr; I think if you directly modified how it was stored in the DB it might work.

    Avatar of redknite
    redknite
    Participant

    @redknite

    Did you figure out how to do this? I tried directly editing the db and didn’t get any changes.

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.