Skip to:
Content
Pages
Categories
Search
Top
Bottom

Profile Field Description removes target="_blank" from links

  • @alanniemies

    Participant

    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)
  • @alanniemies

    Participant

    Anyone?

    @haykayltduk

    Participant

    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.

    @redknite

    Participant

    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)
  • The topic ‘Profile Field Description removes target="_blank" from links’ is closed to new replies.
Skip to toolbar