In the members-only forum, a user wanted to know how to automatically add slugs of both categories and tags to the existing list of body element's classes in WordPress.
Adding the following in child theme's
functions.php will automatically add categories and tags as body classes in WordPress on single pages (other than static Pages).
To view the full content, please sign up for the membership.
Already a member? Log in below or here.
Find my tutorials helpful and wish to donate?
Please log in again. The login page will open in a new tab. After logging in you can close it and return to this page.