Top Left Text cha

Web & App Development

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;?>">

 

 

Add comment


Security code
Refresh

  • No comments found

Leave your comments

Post comment as a guest

0
Your comments are subjected to administrator's moderation.
X