Add body class
//* Add custom body class to the head add_filter( 'body_class', 'sp_body_class' ); function sp_body_class( $classes ) { if ( is_page( 'sample-page' )) $classes[] = 'custom-class'; return $classes; }