Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Forum: Plugins
    In reply to: [WP Job Manager] Add Slug
    Thread Starter Twist360

    (@twist360)

    Hi Mike,

    Thanks for your help, the body tag was being included in the header.php but after some googling, the following code fixed the problem

    if( ! is_page_template('single-job_listing.php') )
    {
    	add_filter( 'body_class', 'job_body_class' );
    }
    
    function job_body_class( $classes ) {
    
         if( ! is_page_template() )
              $classes[] = 'job_listing';
    
        return $classes;
    }

    EDIT: Actually this just added About to all pages… still googling 🙂

    Forum: Plugins
    In reply to: [WP Job Manager] Add Slug
    Thread Starter Twist360

    (@twist360)

    Thanks Mike, Maybe we are stripping it somewhere Do you know if VC does this as my page shows:

    <body class=" wpb-js-composer js-comp-ver-4.3.3 vc_responsive">

    Appreciate this is our application issue and not the plugin in that case.

Viewing 2 replies - 1 through 2 (of 2 total)