Title: remove body class
Last modified: August 21, 2021

---

# remove body class

 *  Resolved [Frederic Legrand](https://wordpress.org/support/users/fredericlegrand/)
 * (@fredericlegrand)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/remove-body-class-2/)
 * Hi
 * have a look to the end of that thread
    i think it could be a nice fetaure to 
   your plugin [https://wordpress.stackexchange.com/questions/15850/remove-classes-from-body-class](https://wordpress.stackexchange.com/questions/15850/remove-classes-from-body-class)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Jose Mortellaro](https://wordpress.org/support/users/giuse/)
 * (@giuse)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/remove-body-class-2/#post-14805148)
 * Hi [@fredericlegrand](https://wordpress.org/support/users/fredericlegrand/)
 * thank you very much for the idea.
 * This kind of thing is too specific. Few users will need it. All other users would
   have more weight for something they will not use.
    I also don’t like to remove
   a class of the body via JS after the page is loaded. If someone uses that class
   for custom CSS and you remove it with a script that runs in the footer, you will
   see changes in the style during the page loading.
 * I think it’s better to add a few lines of custom code for people who need it.
 * If it was at 0 cost in terms of weight, it was not a problem, but due to the 
   structure of FDP, this would cost a little in terms of weight. FDP loads no scripts
   and no CSS in the frontend. This feature would mean from 0 scripts to a couple
   of lines of JS. So I prefer to don’t add this feature.
 * Maybe you can suggest the author of this plugin [https://wordpress.org/plugins/add-custom-body-class/](https://wordpress.org/plugins/add-custom-body-class/)
   add an option to remove body classes instead of only add them.
    I think it’s 
   more territory of that plugin.
 * In any case, thank you very much for the idea.

Viewing 1 replies (of 1 total)

The topic ‘remove body class’ is closed to new replies.

 * ![](https://ps.w.org/freesoul-deactivate-plugins/assets/icon-256x256.png?rev=
   2847508)
 * [Freesoul Deactivate Plugins - Disable plugins on individual WordPress pages](https://wordpress.org/plugins/freesoul-deactivate-plugins/)
 * [Support Threads](https://wordpress.org/support/plugin/freesoul-deactivate-plugins/)
 * [Active Topics](https://wordpress.org/support/plugin/freesoul-deactivate-plugins/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/freesoul-deactivate-plugins/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/freesoul-deactivate-plugins/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Jose Mortellaro](https://wordpress.org/support/users/giuse/)
 * Last activity: [4 years, 8 months ago](https://wordpress.org/support/topic/remove-body-class-2/#post-14805148)
 * Status: resolved