I was able to fix this by changing my header.php
<body>
tag to
<body <?php body_class($class); ?>>
and adding
function add_slug_body_class( $classes ) {
global $post;
if ( isset( $post ) ) {
$classes[] = $post->post_type . '-' . $post->post_name;
}
return $classes;
}
add_filter( 'body_class', 'add_slug_body_class' );
to my functions.php code