Skip to:
Content
Pages
Categories
Search
Top
Bottom

Modify profile edit screen

  • @soysaucesam

    Member

    Hello,

    I am working on my BP child theme and I would like to modify the profile edit.php file. My project requires more extensive formatting of the profile edit page, so rather than using the profile loop, I was hoping to call profile fields individually, along with additional markup (More titles, divs, etc)

    Clearly I am a php novice- Could someone give me a hint on how I would call an individual field for the profile edit page?

    Also, any opinions on whether or not this is the best way to get to my goal of having more formatting on the profile edit screen? Any other ideas?

Viewing 4 replies - 1 through 4 (of 4 total)
  • @modemlooper

    Moderator

    in member-header.php theres a comment that says this.

    If you’d like to show specific profile fields here use:
    bp_profile_field_data( ‘field=About Me’ ); — Pass the name of the field

    @soysaucesam

    Member

    @Modemlooper- Thanks for the reply.
    Do you know if that works for editing the fields, or just for displaying them? I tried uncommenting that using one of my field names, and it crashed my page. I will continue to play around with it.

    @modemlooper

    Moderator

    You have to echo it out. http://php.net/manual/en/function.echo.php

    wrap it in php tags
    echo bp_profile_field_data( ‘field=About Me’ );

    @soysaucesam

    Member

    Thanks @Modemlooper-

    I took the things you pointed out, but modified things a bit. Within the profile field loop in members/single/profile/edit.php I added a series of lines like this:
    `<?php if (bp_get_the_profile_field_id()=='7') echo "

    Title Here

    “; ?>`

    Then added a css class to do all the formatting. Works great.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Modify profile edit screen’ is closed to new replies.
Skip to toolbar