Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #459417

    Ist es möglich die Option das Design zu ändern für Redakteure auszublenden?

    Danke für Hilfe :-)

    mexi

    #460010

    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

    #460011

    Hi Ismael,

    do you mean the functions-enfold.php ?

    Yes, i will hide the layoutbilder for everyone. Only Administrator can see it.

    Greets

    mexi

    #461204

    Hi!

    no, put Ismael’s code into functions.php (even better inside your child theme.

    Cheers!
    Andy

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.