TL;DR WordPress ã® functions.php ã«æ¸ãã¦ããã¨æããã¨ãã¾ã¨ãã¦ããã¾ãã åºå®ãã¼ã¸å¤å¥ãbody ã«åºå®ãã¼ã¸ã®ã¹ã©ãã°åã追å body ã«åºå®ãã¼ã¸ã®ã¹ã©ãã°åã追å ãããããã¼ã¸ã¯ home ã®ã¯ã©ã¹åãã¤ããåºå®ãã¼ã¸ãªã©ã¯ guide about ãªã©ã®ã¹ã©ãã°åãåå¾ãã¯ã©ã¹åãä»ä¸ãããã function pagename_class($classes = ''){ if (is_page()) { $page = get_post();//get_page()ã¯å»æ¢ãããã®ã§ä½¿ããªã $classes[] = $page->post_name;//ã¹ã©ãã°ååå¾ } return $classes; } add_filter('body_class', 'pagename_class');

{{#tags}}- {{label}}
{{/tags}}