Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter predstitans3797

    (@predstitans3797)

    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

Viewing 1 replies (of 1 total)