hiding certain items in backend based on role
-
Is it possible to add custom css for roles (I want to use this to hide certain widgets)
Example not sure if I would use role ids or name of role?
$role = ( 'role1' ); { echo '<style type="text/css"> /* Styles here! */ #sidebar .widget-id {display:none;} </style>'; } $role = ( 'role2' ); { echo '<style type="text/css"> /* Styles here! */ #sidebar .widget-anotherid {display:none;} </style>'; }
[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been damaged by the forum’s parser.]
I’ve been trying to figure out a way to hide widgets in backend based on roles but no luck so far.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘hiding certain items in backend based on role’ is closed to new replies.