{"id":37827,"date":"2015-07-26T20:39:09","date_gmt":"2015-07-26T20:39:09","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/wp-custom-body-class\/"},"modified":"2025-07-27T17:23:31","modified_gmt":"2025-07-27T17:23:31","slug":"wp-custom-body-class","status":"publish","type":"plugin","link":"https:\/\/haz.wordpress.org\/plugins\/wp-custom-body-class\/","author":11628580,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.7.5","stable_tag":"0.7.5","tested":"6.8.5","requires":"5.2.0","requires_php":"","requires_plugins":null,"header_name":"Custom Body Class","header_author":"Andrei Lupu","header_description":"","assets_banners_color":"","last_updated":"2025-07-27 17:23:31","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/a.lup.dev","header_author_uri":"https:\/\/a.lup.dev","rating":5,"author_block_rating":0,"active_installs":10000,"downloads":118448,"num_ratings":21,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":{"0.4.0":{"tag":"0.4.0","author":"radu.constantin","date":"2016-09-27 15:12:11"},"0.5.0":{"tag":"0.5.0","author":"euthelup","date":"2017-12-08 15:09:31"},"0.6.0":{"tag":"0.6.0","author":"euthelup","date":"2019-01-22 12:15:46"},"0.7.0":{"tag":"0.7.0","author":"euthelup","date":"2019-07-07 11:12:20"},"0.7.1":{"tag":"0.7.1","author":"euthelup","date":"2019-07-15 17:30:08"},"0.7.2":{"tag":"0.7.2","author":"euthelup","date":"2020-06-02 15:43:45"},"0.7.3":{"tag":"0.7.3","author":"euthelup","date":"2022-06-10 16:43:08"},"0.7.4":{"tag":"0.7.4","author":"euthelup","date":"2025-01-20 01:32:04"},"0.7.5":{"tag":"0.7.5","author":"euthelup","date":"2025-07-27 17:23:31"}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":21},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.4.0","0.5.0","0.6.0","0.7.0","0.7.1","0.7.2","0.7.3","0.7.4","0.7.5"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[2858,1241,356,527],"plugin_category":[59],"plugin_contributors":[78507],"plugin_business_model":[],"class_list":["post-37827","plugin","type-plugin","status-publish","hentry","plugin_tags-body","plugin_tags-class","plugin_tags-css","plugin_tags-custom","plugin_category-utilities-and-tools","plugin_contributors-euthelup","plugin_committers-euthelup","plugin_committers-raduconstantin"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wp-custom-body-class.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>You can use this plugin to add a unique CSS class to your pages or posts.<\/p>\n\n<h4>Demo<\/h4>\n\n<p><a href=\"https:\/\/tastewp.com\/\">TasteWP<\/a> has prepared a quick WordPress instance with this plugin, so you can give it a try <a href=\"https:\/\/demo.tastewp.com\/wp-custom-body-class\">in this demo<\/a><\/p>\n\n<h4>Responsiveness<\/h4>\n\n<p>There's a way to add a class to appear only on mobile devices. You can do that by simply adding <code>mobile-<\/code> on the front of\nthe class. For example, if you want to have the class \"car\" for mobile side, you need to use \"mobile-car\".<\/p>\n\n<h4>Support me<\/h4>\n\n<p>If you find this plugin helpful, or you just want to send me a coffee here are the ways:<\/p>\n\n<ul>\n<li>Use the Github Sponsor button<\/li>\n<li><a href=\"https:\/\/ko-fi.com\/thelup\">Ko-fi<\/a><\/li>\n<li>Watch me coding on <a href=\"https:\/\/www.twitch.tv\/thelup\/\">twitch.tv\/thelup<\/a><\/li>\n<li>Or simply visit my site <a href=\"https:\/\/a.lup.dev\/\">lup.dev<\/a> and make those analytics ring the bells.<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Install Custom Body Class either via the WordPress.org plugin directory, or by uploading the files to your <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>After activating Custom Body Class go to any edit page and see the Custom Body Class metabox in the right sidebar.<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>0.7.5<\/h4>\n\n<ul>\n<li>Fix: Fixed a notice about textdomain loaded too early.<\/li>\n<li>Update: Check compatibility with WordPress 6.8.2 and PHP 8.3.*<\/li>\n<\/ul>\n\n<h4>0.7.4<\/h4>\n\n<ul>\n<li>Update: Check compatibility with WordPress 6.7.1 and PHP 8.2.*<\/li>\n<\/ul>\n\n<h4>0.7.3<\/h4>\n\n<ul>\n<li>Update: Check compatibility with 6.0.0.<\/li>\n<\/ul>\n\n<h4>0.7.2<\/h4>\n\n<ul>\n<li>Fix: Properly instantiate plugin default settings.<\/li>\n<\/ul>\n\n<h4>0.7.1<\/h4>\n\n<ul>\n<li>Update: Check for nonce existence on settings page form.<\/li>\n<\/ul>\n\n<h4>0.7.0<\/h4>\n\n<ul>\n<li>Update: Better escapes for the plugin's settings page.<\/li>\n<li>Update: Modified textdomain as the plugin's name.<\/li>\n<li>Add: Nonce verification for the plugin's settings page.<\/li>\n<\/ul>\n\n<h4>0.6.0<\/h4>\n\n<ul>\n<li>Fix: Now the metabox will load even if the Autocomplete feature is off.<\/li>\n<li>Add: The capability to restrict the metabox for Administrators only.<\/li>\n<\/ul>\n\n<h4>0.5.0<\/h4>\n\n<ul>\n<li>Add an option for a global class<\/li>\n<\/ul>\n\n<h4>0.4.0<\/h4>\n\n<ul>\n<li>Add support for classes on mobile devices<\/li>\n<\/ul>\n\n<h4>0.3.0<\/h4>\n\n<ul>\n<li>Add a tag selector with autocomplete for all post types<\/li>\n<\/ul>\n\n<h4>0.0.3<\/h4>\n\n<ul>\n<li>Quick archives fix<\/li>\n<\/ul>\n\n<h4>0.0.2<\/h4>\n\n<ul>\n<li>Small fixes, and typos<\/li>\n<\/ul>\n\n<h4>0.0.1<\/h4>\n\n<ul>\n<li>We are on<\/li>\n<\/ul>","raw_excerpt":"A plain simple plugin which allows you to add a custom CSS class the HTML body tag.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/haz.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/37827","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/haz.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/haz.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/haz.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=37827"}],"author":[{"embeddable":true,"href":"https:\/\/haz.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/euthelup"}],"wp:attachment":[{"href":"https:\/\/haz.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=37827"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/haz.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=37827"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/haz.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=37827"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/haz.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=37827"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/haz.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=37827"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/haz.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=37827"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}