Skip to:
Content
Pages
Categories
Search
Top
Bottom

Minor changes to user profile edit form


  • richdal
    Participant

    @richdal

    WordPress 4.4.2
    BuddyPress 2.5.1

    Not sure how to change up the form where users would update their extended profile.

    I was able to setup a custom registration page by copying the source file to here and making my changes…

    /wp-content/themes/genbu-child/buddypress/members/register.php

    On the user Profile – Edit page I’m seeing the different fields I wanted to include, but wanted to add some extra description to the three birth date menus that show up. Is there a file similar to register.php I could copy to my child theme and fix up the HTML how I want it?

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

  • shanebp
    Moderator

    @shanebp

    The file is:
    buddypress\bp-templates\bp-legacy\buddypress\members\single\profile\edit.php


    richdal
    Participant

    @richdal

    Thanks! I was able to copy that to my child theme

    /wp-content/themes/genbu-child/buddypress/members/single/profile/edit.php

    and can do some basic edits. Not familliar with making these types of changes but how would I change up some of the form field information. As an example I wanted to add some description text next to the 3 date fields for the Birth Date. If looked like those were getting generated here…

    
    <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
               <div<?php bp_field_css_class( 'editfield' ); ?>>
    
               <?php
                $field_type = bp_xprofile_create_field_type( bp_get_the_profile_field_type() );
                $field_type->edit_field_html();
    

    but not sure how to change those up.


    richdal
    Participant

    @richdal

    I was able to track it down to one of the class files. I followed the directions for making a custom class file and was able to get that to work with the format changes I needed.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Skip to toolbar