Forums › Forums › Search & Filter Pro › Increase Indentation on list
Tagged: increase indent
- This topic has 21 replies, 2 voices, and was last updated 7 years, 10 months ago by Trevor.
-
Anonymous(Private) January 26, 2017 at 3:57 pm #85783
I tried using CSS, unfortunately Macs/ Safari refuse to honor display:none;
Regarding the code
// add indent to dropdownfunction filter_function_name($input_object, $sfid87) //I cant change it to just 87 as its expecting a variable
{
if($input_object[‘name’]==’_my_field_name’) // this should be the class name?
{
//udpate this field before rendering
$input_object = ” “. $input_object;
}return $input_object;
}
add_filter(‘sf_input_object_pre’, ‘filter_function_name’, 10, 2); // what is 10,2 is that something that I should be changing?Sorry to be such a bother.
Anonymous(Private) January 26, 2017 at 4:41 pm #85810thanks tried to do important but didnt work.
Sorry regarding the code,
A: $sfid how do I write the number of the search form, if i just replace it with 87, it gives aphp error that it is expecting a variable not a numberB: if($input_object[‘name’]==’_my_field_name’) – _my_field_name should be the class?
-
AuthorPosts