• Resolved nella1980

    (@nella1980)


    Hi there,

    I’ve added xprofile field country and created a search form with bp profile search. I’m trying to get the field label “country” to show in the dropdown where it would usually say “select”. But this is empty for all search forms I create.
    I also have an ajax search filter in the theme I use for the other dropdown (last active, new registered, alphabetical) and would like to use it for the bp profile search form as well. Is this possible?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Andrea Tarantini

    (@dontdream)

    Hi nella1980,

    Try using the template ‘bps-form-sample-1’, it should do what you need.

    The other feature instead (the ajax search) is not available. Sorry!

    Thread Starter nella1980

    (@nella1980)

    Hi Andrea,

    I switched to bps-form-sample-1 and no change. I’m using the shortcode in the template file, could that be it?

    A pity I can’t use ajax but how do I get the search button to display next to the dropdown instead of underneath?

    Plugin Author Andrea Tarantini

    (@dontdream)

    Hi nella1980,

    Did you specify the template in the shortcode?

    [bps_display form=xyz template='members/bps-form-sample-1']

    To move the search button, you can try to edit the form template bps-form-sample-1.php, removing the div tags enclosing the form elements. You can comment out the lines 63, 178, 181 e 183:

    // echo "<div class='$class'>\n";

    // echo "</div>\n";

    // echo "<div class='submit'>\n";

    // echo "</div>\n";

    Thread Starter nella1980

    (@nella1980)

    Hi Andrea,

    Specifying the template in the shortcode did the trick! Thanks so much for you help!!

    I’ve removed the div tags but had to replace line 181 with // echo "&nbsp;"; to get the button on the right side. It does appear to throw off my css a bit. Still looking on how to fix this. Is there a way I can style the submit button for the search without it affecting all my buttons? When I use CSS input[type=submit] {} it affects all the buttons on my website.

    Plugin Author Andrea Tarantini

    (@dontdream)

    Hi nella1980,

    To restrict the CSS changes to that specific submit button, you can use

    .bps_form input[type="submit"] {}

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Field label not showing in dropdown and ajax filter’ is closed to new replies.