Forums › Forums › Search & Filter Pro › Increase Indentation on list
Tagged: increase indent
- This topic has 21 replies, 2 voices, and was last updated 8 years, 9 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?
Anonymous(Private) January 30, 2017 at 2:42 am #86576Hi Trevor. Thanks for taking the time to respond to all my questions.
Just in case anyone else needs the same thing,
our coder realized that the easiest way to do it was to change the depth of how many nbsp;s there are insearch-filter-pro\public\includes\class-search-filter-generate-input.php
on line 255
where it says
$label_pad = str_repeat(‘ ‘, $option->depth * 3);
change the depth to a higher number -
AuthorPosts