Tagged: Color, conditions
Hi,
I would like to change some aspects of the theme-design (color for menu, background, text) if certain conditions are met. e.g.:
> visitor is logged-in (give strong signal to members that they are in members-only area)
> visitor from certain country (some countries prefer different color families)
> category
Can you think of a way or workaround on how I could achieve this with Enfold?
Tx,
Frank
Hi Frank,
I’m sure it’s possible but you would have to use a combination of PHP and CSS to be able to achieve that. To determine if a user is logged in you can use this: https://developer.wordpress.org/reference/functions/is_user_logged_in/
I’m not sure how to track what country a user is in, but I’m sure there are plugin out there to achieve that: https://wordpress.org/plugins/
Best regards,
Rikard