• Hello, I have a question – I need another user with the administrator role to not be able to edit the website using Elementor from the link in the top navigation bar. Can this link be disabled somehow using your plugin? Unfortunately, I couldn’t find it anywhere. Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Janis Elsts

    (@whiteshadow)

    Unfortunately, that’s not possible with this plugin. The top bar (known as the “WordPress Toolbar” or “Admin Bar”) is technically not part of the admin menu, and you can’t edit it with this plugin.

    Thread Starter 1info6

    (@1info6)

    OK. But it seems that this code helped (change the number 2 according to the order of the given user):

    // hide edit with elementor for custom user
    add_action('wp_head', 'allteams_custom_styles', 100);
    function allteams_custom_styles() {
     $user = get_current_user_id();       
    if ($user == 2) {
            echo "<style>#wp-admin-bar-elementor_edit_page{display: none !important;}</style>";
        }
    }
    • This reply was modified 1 year, 6 months ago by 1info6.
    Plugin Author Janis Elsts

    (@whiteshadow)

    Hiding the item with CSS will work, but keep in mind that it’s not truly secure. A user who is familiar with web development could overcome that restriction fairly easily.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Prohibition of editing the site by another administrator’ is closed to new replies.