• Hello, I would like the second user with the administrator role to not be able to edit pages using a link in the navigation bar located in the WordPress administration (the bar that appears after logging in to admin at the top of the website). It’s the only place where the other admin can enter the edit, which I don’t want. If I assign it another role, then again it cannot control the All in One seo pack plugin, which is only available to the administrator. Is there any solution? E.g. any code?

Viewing 4 replies - 1 through 4 (of 4 total)
  • You can use the Controlled Admin Access plugin.

    Hi

    Can you please send me a link to your site?

    Thread Starter 1info6

    (@1info6)

    Hello, the page is still hidden. 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.

    Hi

    Do you have the Elementor pro plugin in your site?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Hide Elemenotr for another admin’ is closed to new replies.