• Hi Andrea,

    Out of curiosity, can you tell if there is a way to add placeholder to the search form? Most of the fields are drop down fields. I’m using no jQuery theme and the template selected is “bp-form-default”.

    Appreciate your help!

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

    (@dontdream)

    Hi cl0ne,

    Try adding to your bp-custom.php something like this:

    add_action ('bps_field_before_search_form', 'set_placeholder');
    function set_placeholder ($f)
    {
    	if ($f->code == 'field_4' && $f->display == 'selectbox')
    	{
    		$f->options[''] = 'select requested value...';
    	}
    	if ($f->code == 'field_35' && $f->display == 'selectbox')
    	{
    		$f->options[''] = 'select requested city...';
    	}
    // and so on
    }

    Replace field_4, field_35 with the actual field IDs of your drop-down fields.

Viewing 1 replies (of 1 total)

The topic ‘Placeholder text’ is closed to new replies.