Can i style a wordpress woocommerce based shop according to specific usernames using Access?
So for customer1, when he logins, some content of the page (widgets) will change and eventually some css.
thanks
Dear Pedro,
There isn't such a built-in feature within Access plugin, but in your case, I suggest you try with custom user fields + shortcode [wpv-conditional], for example:
1) You can create a custom user fields favorite-color, with options "Red", "Yellow", and so on.
Your user will be able to choose their own favorite-color option in the profile page.
https://toolset.com/documentation/user-guides/user-fields/
Adding Fields to User Profiles
2) In the front-end, you can use shortcode [wpv-conditional] to check the user field "favorite-color" value of current user, then display correspond content for the user:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-conditional
Conditional shortcode to be used to display a specific block of meta HTML based on results of a boolean expression .
Thank you Luo.
2) so with meta html i can display specific widget according to specific fields values of the user profile? Including loading specific css files?
The widget is defined in your sidebar, Views shortcode [wpv-conditional] or Access plugin can not change it, but you can setup a text widget, in the content of text widget use the Views shortcode [wpv-conditional] to output different content according to user field value.
Yes, you can load CSS file with some inline HTML codes, for example:
<link rel='stylesheet' id='red' href='<em><u>hidden link</u></em> of the CSS file' type='text/css' media='all' />