I have a lot of people who I trust to edit posts/pages, and make posts/paegs on my site that I created with Enfold. They are WordPress Editor level Roles.. However, I do not trust them to tinker around with the Enfold theme. By this I mean what when I log in to the wp-admin site, the area where the ENFOLD setting are, like theme color, font color, etc. Is there a way to restrict their access to these settings?
Someone said to use AAM or User Role Editor, but I cant figure out hot to remove Enfold from the editors setings.
Can you provide any guidance to help me with my issue. Thanks in advance.
Hey!
Try adding this at the very end of your theme / child theme functions.php file:
add_action('admin_print_scripts', 'avia_gravity_forms_admin');
function avia_gravity_forms_admin() {
if ( !current_user_can('manage_options') ) {
echo "<style type='text/css'>";
echo "#toplevel_page_avia { display: none; }";
echo "</style>";
}
}
Cheers!
Josue