WordPress.org

Ready to get started?Download WordPress

Forums

Clicky by Yoast
Disable Clicky in toolbar (3 posts)

  1. mcgorie
    Member
    Posted 1 year ago #

    With the theme I am using the clicky feature in the toolbar is available to customers when they are logged in. How do I disable this function?

    http://wordpress.org/plugins/clicky/

  2. ebarcena
    Member
    Posted 9 months ago #

    Yes I'm looking for a solution for this as well. Regardless of the theme, it seem that anyone who is registered on the site will get the stats in the toolbar. Site stats should be private and only available to site owners/administrators or at least it should be a default option in the plugin's settings.

    Is there a temporal hack I can use to disable stats to any non-administrator?

    Thanks!

  3. ebarcena
    Member
    Posted 9 months ago #

    Hey mcgorie this might help you in the meanwhile. It actually worked out better for me. Paste the following code in your functions.php file:

    add_action('after_setup_theme', 'remove_admin_bar');
    
    function remove_admin_bar() {
    if (!current_user_can('administrator') && !is_admin()) {
      show_admin_bar(false);
    }
    }

    It will completely remove the toolbar to everyone except site administrators.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.