---
title: Adding Custom Body Classes To Freelancer
description: "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' );…"
url: "https://www.docs.cobaltapps.com/articles/adding-custom-body-classes-to-freelancer/"
updated: "2022-08-26"
category: Freelancer Framework
---

# Adding Custom Body Classes To Freelancer

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.
