WordPress body class


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <!-- Begin body with extended body class - via bit.ly/rtwp-bodyclass -->
  2. <body <?php $page_slug = $post->post_name; body_class($page_slug); ?>>

URL: bit.ly/rtwp-bodyclass

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.