Extra class name via functions.php
-
Hello,
I want to add a snippet to the functions.php where it uses extra class name to style particular content element differently – add a class name and refer to it in custom CSS.
For example: .visitor
This class will show the content for visitors only and people who are not logged in.
Another example: .registered
This class will show the content for users who are logged in to the website.
How to add such classes using php?
I highly appreciate your help.
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘Extra class name via functions.php’ is closed to new replies.