Add a “has-children” class to body tag? April 29, 2022 by Tarik Billa There is a body_class filter, if memory serves. That would be the right one to use.