Ist es möglich die Option das Design zu ändern für Redakteure auszublenden?
Danke für Hilfe :-)
mexi
Hey mexi33330!
Thank you for using Enfold.
Do you want to hide the layout builder for editors? You can use this in the functions.php file:
add_filter('admin_head', 'avf_builder_button_params_mod', 10, 1);
function avf_builder_button_params_mod($params) {
$user = wp_get_current_user();
if ( in_array( 'editor', (array) $user->roles ) ) {
echo '<style type="text/css">#avia_builder{display: none !important;}';
}
}
Cheers!
Ismael
Hi Ismael,
do you mean the functions-enfold.php ?
Yes, i will hide the layoutbilder for everyone. Only Administrator can see it.
Greets
mexi
Hi!
no, put Ismael’s code into functions.php (even better inside your child theme.
Cheers!
Andy