Hi,
I’m creating an account for a customer to enable him/her to create Events with Events Calendar.
Is that possible to deactivate ALB from his/her account if needed? I just want him to be able to accede to Events Menu (full)
Thanks
Hey Ad-Min747,
I assume that your user is not admin, so see the theme option at Enfold Theme Options ▸ Layout Builder ▸ Lock Advanced Layout Builder
This removes the ability to move or delete existing template builder elements, or add new ones, for everyone who is not an administrator.
Another option might be this function in your child theme functions.php file in Appearance ▸ Editor to hide the ALB button from anyone that is not admin.
add_action('admin_head', function() {
if( !current_user_can('activate_plugins') ){
?>
<style>#avia-builder-button{ display: none; } </style>
<?php
}
});
Best regards,
Mike