Tagged: editor, enfold, user roles
Hi team,
I would normally lock the layout editor for all non admins and give clients shop manager access so they can manage their woocommerce store without risk of accidently deleting ALB elements.
This particular customer has asked me to keep the layout editor locked for pages but allow the use of the layout editor on posts.
Is there a way to do this with Enfold?
I tried using the Members plugin for user roles but it does not cover Enfold’s editor permissions.
Hey Thomas,
You can use the following filter:
add_filter( 'avf_allow_drag_drop', 'custom_disable_alb_drag_drop', 100, 1 );
This will hook after our filter in enfold\functions-enfold.php line 2227.
in your function
custom_disable_alb_drag_drop( $disable )
{
// add logic to decide what to do
}
return true to allow drag/drop or false to lock.
Hope this helps you.
Best regards,
Günter
Thanks Gunter I’ll give this a try.
I will re-visit the site again and see if I can get this working.
I have delivered face to face training to the client’s staff and created a simple user guide – In hope that they dont break anything!
Hi Günther,
I have a similar problem but unfortunately I don’t understand exactly the adjustments that you describe and where I have to do them in the functions-enfold.php. It would be great if you could provide more information.
Thanks a lot
Thorsten
Hi,
@ThorstenFB: You can add the avf_allow_drag_drop in the functions.php file. Usage example can be found here: https://kriesi.at/support/topic/alb-does-not-work-with-user-role-editor/#post-1293830
Please create another thread if you need more assistance.
Best regards,
Ismael