Skip to:
Content
Pages
Categories
Search
Top
Bottom

position profile field description


  • dlongm01
    Participant

    @dlongm01

    Wordpress 4.4
    Buddypress 2.4.2

    Is it possible to place the description of a profile field underneath the field title (preferably using CSS)?

    Thanks

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

  • shanebp
    Moderator

    @shanebp

    Where are you viewing the profile field?
    On a member profile page?
    If so, you can use this php function bp_the_profile_field_description() in a template overload of buddypress\bp-templates\bp-legacy\buddypress\members\single\profile\profile-loop.php.

    If you mean the register page, create a template overload of that template
    buddypress\bp-templates\bp-legacy\buddypress\members\register.php
    and move the call to bp_the_profile_field_description() wherever you want it.

    I don’t think you can do it with just css.


    dlongm01
    Participant

    @dlongm01

    Thanks for the help @shanebp. However, I am no good with PHP (yet) and still quite new to WP and BP so at the moment not entirely sure what to do with your suggestion.


    dlongm01
    Participant

    @dlongm01

    In fact I have found a reasonable solution using CSS. I found some key clues on in the support forum for this plugin: Buddypress Xprofile Custom Fields Type (though I’m not using that plugin).

    If anyone has any advice about how to improve this I would be glad to hear it. Thanks

    /* Buddypress profile field description position*/
    .editfield {
    position: relative;
    top: 5px;
    }
    .editfield label {
    font-weight:bold;
    margin-bottom: 30px;
    }
    .input field_4 {
    margin-top: 5px;
    }

    form.standard-form p.description {
    margin: 0 0 15px;
    position: absolute;
    top: 20px;
    line-height:1em;
    }


    dlongm01
    Participant

    @dlongm01

    @shanebp I forgot mention that I am talking about editing the member profile on the front end, i.e the member profile page.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘position profile field description’ is closed to new replies.
Skip to toolbar