Add Custom Class To Your Body Element – wptip #15

With the “body_class” filter you can add custom classes to your body HTML element, this can be useful when you are coding hierarchical structured CSS or you just need a specific CSS selector.


Code Reference:

Posted by Donini

WordPress Developer very involved with the community.