Hi, I would like to use Member roles that I made specifically for specific features (essentially it’s a sort of opt in to new features allowing them access to exclusive pages, I call the role Beta Stream).
I really want to make the UI as user accessible as possible, whilst keeping the clean, material/minimal look of the site. In order to do this, I want to make certain buttons disappear or reappear depending on the role in which they are allocated.
The first of these features is a couple of buttons, that I want to make hidden by default, but appear (using
.show()
) to make it appear only if they have beta stream role included in their list of roles.
The button that will be affected:
In the future I plan to utilise similar code to hide admin related content like the admin panel and pen icons on this page;
If someone could guide me (step by step) through each part of the code I would need to add into the editor, I would be much obliged, as it was too difficult for me to figure out how it works using the Velo subsite, plus much of the code is customised to wix’s specifications so it’s difficult to find what I would need to reference in order to make it work (ie, I got a red squiggly line under “user” when typing things like “user.id” and similar things.