Dynamic body class

<?php
switch ($post->ID) {
case 411:
echo '<body class="page411">';
break;
case 414:
echo '<body class="page414">';
break;
default:
echo '<body>';
}
?>

0 Comments

You must be logged in to post a comment.