Hi, you can add following code in your theme CSS file it will hide the checkbox for top level categories
.adverts-option-depth-0 > input {
visibility: hidden;
}
Thread Starter
GLADIT
(@gladit)
Hey Greg,
thank you for your answer.
I don’t use the checkbox.
This is my array for categories:
array(
“name” => “advert_category”,
“type” => “adverts_field_select”,
“order” => 20,
“label” => __(“Category”, “adverts”),
“max_choices” => 1,
“options” => array(),
“options_callback” => “adverts_taxonomies”
So i guess thats the reason why your code doesnt work for me isn’t it?
Any other solution. If not please show me how i have to change the array so the css code will work for me.
Thanks Alex
Hi, when you allow to select just one category then disabling top categories is not really possible right now i am afraid.