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.
-
Trevor(Private) January 18, 2017 at 4:11 pm #83452
What browser did you look at for this? I just looked in Chrome and Edge and it looks as your image, but in Firefox, not. That is why I was confused, as I normally use Firefox.
However, I think all you need is custom CSS like this:
.sf-input-select .sf-level-1 { margin-left: 50px !important; }
Or whatever value you want …
and so on as the level numbers increase.
Anonymous(Private) January 18, 2017 at 4:18 pm #83454Hey thanks, I hadn’t checked it in Firefox, and your right CSS does work in Firefox.
But it doesn’t work in Chrome, When I added in that code it didn’t change in Chrome.
Is there anything that is cross browser compatible?
If not do you know where the code is to add in the extra spaces and I can add in a few more there?
Anonymous(Private) January 18, 2017 at 4:43 pm #83471Thank you.
My php isn’t that great, would it would be something like;
function filter_function_name($input_object, $sfid=87)
{
if($input_object[‘name’]==’sf-level-1′)
{
//udpate this field before rendering
$input_object[‘attributes’][‘style’] = ‘margin-left:50px;’;
}return $input_object;
}
add_filter(‘sf_input_object_pre’, ‘filter_function_name’, 10, 2); -
AuthorPosts