Take your website
To the next level
Discover our newly launched customization services and elevate your web projects to new heights.
Delegate tasks, save time, and unlock the power of professional WordPress outsourcing.

Okay
  Public Ticket #1363736
Gem Toolbar
Closed

Comments

  • bouncebbabe started the conversation

    Dear CodexThemes,

    When a regular user logs in to our website, sees unrelated gem template's options in it's dashboard's toolbar (such as the gem documentation, purge thumbnail cache, feedback, template options...). How can I turn off this? why is this there? is this because of a misconfiguration on my side or is it a bug?

  •  7,092
    Oliver replied

    HI!

    pls. add this code to the functions.php of the child theme:

    add_action( 'init', 'admin_rights_action' );
    function admin_rights_action(){
        remove_action('admin_bar_menu', 'thegem_admin_bar_site_menu', 100);
         if (current_user_can( 'manage_options' ) ) {
            add_action('admin_bar_menu', 'thegem_admin_bar_site_menu', 101);
        }
    }

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver