How to hide category names and move the description?

This has really helped me! The solution has worked, however, I don’t want this rule to apply to subcategories. I can’t seem to fathom the rule I need to allow these changes to take effect to the main categories but for them to ignore the subs.

Is there a solution to this?

Thank in advance!