WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to - use post slug as a class name for body (2 posts)

  1. aravindajith
    Member
    Posted 4 years ago #

    Is there any way I can use a post's slug as a class name for body?
    It will help me to style specifically for every posts/pages.

    Thanks in advance for the help.

  2. aravindajith
    Member
    Posted 4 years ago #

    Wow! All I wanted in this -> http://codex.wordpress.org/Template_Tags/body_class

    Problem solved! :)

Topic Closed

This topic has been closed to new replies.

About this Topic