Move label type above form field

BP Profile Search › Move label type above form field

  • Author
    Post
  • #11226 Reply
    3bsstudio
    Guest

    Is there a way to move the description above the form fields rather than having it below as it is now?

    Change current example from:

    dd/mm/yy
    Date of Birth

    to

    Date of Birth
    dd/mm/yy

    #11227 Reply
    andrea
    Plugin Author

    Hi 3bsstudio,

    You can modify the form template bps-form-default.php.

    In your case, you could move the field description line (line 272 in the current version) after the field label (after line 125).

    #11228 Reply
    3bsstudio
    Guest

    Thanks for the reply. I ended up with:

    		<div id="<?php echo $id; ?>_wrap" class="bps-<?php echo $display; ?>">
    			<label for="<?php echo $id; ?>" class="bps-label">
    				<strong><?php echo $f->label; ?></strong><span> <?php echo $f->mode; ?></span>
    			</label>
    			<em class="bps-description"><?php echo $f->description; ?></em>
    <br>

    but it has had no effect?

    #11229 Reply
    andrea
    Plugin Author

    Please make sure you are actually using that template.

    What do you read in the Template column in Users -> Profile Search?

    #11230 Reply
    3bsstudio
    Guest

    I must be using a different template. In Profile Search Forms I see:

    members/bps-form-home
    custom template located in: plugins/grimlock-buddypress/templates/

    #11231 Reply
    andrea
    Plugin Author

    Yes, your template is provided by your theme.

    You can try editing that file or, probably better, you can ask your theme provider for advice.

Reply to: Move label type above form field
My Information