Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1461533

    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

    #1461539

    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

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.