You can add custom includes and code to the public and/or admin portions of the site using:
Settings > Site Customization
and adding them to the public and admin includes areas. Using standard Cascading Style Sheets ("CSS"), you can hide portions of the interface, change fonts, colors, and other styles. We set CSS classes on the body of the page so yYou an also make these changes for:
Role | CSS Class |
---|---|
Guest (not logged in) | not-logged-in |
Logged In Users | is-user |
Members | is-member |
Admins (any type) | is-admin |
Limited / Location Admin | is-location-admin |
Super / Org Admin | is-org-admin |
The is-user and is-admin are mutually exclusive and only one will be set.
For example, you can change or hide elements from non-admins, but display them to administrators. We do not currently allow includes to make changes on the the login or account creation page for security reasons (e.g. to prevent stealing of user passwords); however, we may be able to make these types of changes for you.
Important: we do not guarantee changes you make this way will continue to work in the future, but we do and will try to keep the CSS selectors consistent through changes as much as possible. This is still a "use at your own risk" feature at this time.
Sample Code Snippets
Hide the Item Type filter from non-admin users:
<style>
body.not-logged-in div#type-filters, body.is-user div#type-filters {
display: none; }
</style>
Hide the default price of items from non-admin users:
<style>
body.not-logged-in div.result-price, body.is-user div.result-price {
display: none; }
</style>
Comments
0 comments
Please sign in to leave a comment.