In Head:
<?php $template_name = get_post_meta( $wp_query->post->ID, '_wp_page_template', true ); $body_id=str_replace(".php","",$template_name); ?>
In Body:
<body id="<?php echo $body_id;?>">
In Head:
<?php $template_name = get_post_meta( $wp_query->post->ID, '_wp_page_template', true ); $body_id=str_replace(".php","",$template_name); ?>
In Body:
<body id="<?php echo $body_id;?>">
Comments