using post and page slug in body id
-
I’m interested in doing page-by-page custom CSS by setting a body id to the post/page slug. I’ve searched through the posts on this topic but I’m not sure if the codes that people have come up with will assign both post and page slug, and I don’t write PHP myself.
So, I need a function to pull page slug so that I can use it as an ID in header.php. Is there a way I can do this?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘using post and page slug in body id’ is closed to new replies.