Title: Body classes
Last modified: August 30, 2016

---

# Body classes

 *  Resolved [WebMan Design | Oliver Juhas](https://wordpress.org/support/users/webmandesign/)
 * (@webmandesign)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/body-classes/)
 * Hi,
 * I have installed and using this plugin on my website [http://www.webmandesign.eu/](http://www.webmandesign.eu/)
 * I have spotted that until I click “Accept” button, the plugin removes the classes
   on BODY HTML tag which breaks my theme layout.
 * Can you explain why this is happening please?
 * Thanks in advance!
 * Oliver
 * [https://wordpress.org/plugins/ginger/](https://wordpress.org/plugins/ginger/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [WebMan Design | Oliver Juhas](https://wordpress.org/support/users/webmandesign/)
 * (@webmandesign)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/body-classes/#post-6751790)
 * After I’ve switched to “Opt-In (Cookies are disabled until banner is accepted)”
   cookie confirmation type, the body classes were applied again.
 * Are the body classes tight to cookies in WordPress?
 *  Plugin Author [manafactory](https://wordpress.org/support/users/manafactory/)
 * (@manafactory)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/body-classes/#post-6752022)
 * Hi Oliver,
    the problem you descrive could be related with the way your theme
   put body class inside html.
 * If your theme use OB functions, maybe they conflict with ginger:
    [http://php.net/manual/en/function.ob-start.php](http://php.net/manual/en/function.ob-start.php)
 * Let me know
 * Thanks
 *  Thread Starter [WebMan Design | Oliver Juhas](https://wordpress.org/support/users/webmandesign/)
 * (@webmandesign)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/body-classes/#post-6752023)
 * Hi,
 * The theme adds body classes using WordPress native method via a filter [https://codex.wordpress.org/Function_Reference/body_class#Add_Classes_By_Filters](https://codex.wordpress.org/Function_Reference/body_class#Add_Classes_By_Filters)
   No buffering used.
 * Anyway, thank you for help, I am not using the Ginger plugin any more.
 * Regards,
 * Oliver

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Body classes’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/ginger_ff6033.svg)
 * [Ginger - EU Cookie Law](https://wordpress.org/plugins/ginger/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ginger/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ginger/)
 * [Active Topics](https://wordpress.org/support/plugin/ginger/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ginger/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ginger/reviews/)

## Tags

 * [body](https://wordpress.org/support/topic-tag/body/)
 * [class](https://wordpress.org/support/topic-tag/class/)

 * 3 replies
 * 2 participants
 * Last reply from: [WebMan Design | Oliver Juhas](https://wordpress.org/support/users/webmandesign/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/body-classes/#post-6752023)
 * Status: resolved