Freelancer provides a helper function that makes it super simple to add either a single or multiple custom body classes to your site with the following function:
// Add a single body class through a string. freelancer_add_body_classes( 'my-custom-body-class' ); // Add multiple body classes through an array. freelancer_add_body_classes( array( 'my-custom-body-class', 'another-body-class' ) );
This is especially useful inside custom Page Templates or any function that builds custom pages and posts or involves defining page or post context or styling configurations.