Title: Use only for administrators
Last modified: August 31, 2016

---

# Use only for administrators

 *  Resolved [Al_ambique](https://wordpress.org/support/users/auberlu/)
 * (@auberlu)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/use-only-for-administrators/)
 * Hello!
    First of all, nice job, this plugin is really easy to use and makes security
   much stronger.
 * Since a few weeks, I noticed, thanks to Theme My Login, that people were trying
   to bruteforce my Admin account.
    I’d like to use Clef only for Administrators.
 * How can I do that? If I enable the plugin, it adds the Clef loggin button on 
   my BuddyPress login widget, I’d like it to be shown only on a certain page.
 * Of course I could add a _display:none_ css rule for the widget but I’m not really
   fond of that idea…
 * Thanks in advance.
 * [https://wordpress.org/plugins/wpclef/](https://wordpress.org/plugins/wpclef/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Contributor [inthylight](https://wordpress.org/support/users/inthylight/)
 * (@inthylight)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/use-only-for-administrators/#post-7265557)
 * Hi auberlu,
 * Thanks for the encouragement!
 * On your questions:
 * 1. Yes, you can specify that Clef should apply only to admin-level users via 
   the Clef settings page. See [this guide](http://support.getclef.com/article/60-recommended-password-settings-for-clef-wordpress-plugin).
 * 2. If it’s public, can you send the URL where you are seeing this behavior (or
   email a screenshot to [support@getclef.com](https://wordpress.org/support/topic/use-only-for-administrators/support@getclef.com?output_format=md))?
 *  Thread Starter [Al_ambique](https://wordpress.org/support/users/auberlu/)
 * (@auberlu)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/use-only-for-administrators/#post-7265625)
 * Hello,
    I found an easy way to use Clef only for Administrators. Maybe it’s not
   the best but here’s how I achieved it :
 * 1) Enable Clef login only for admin-level users (like explained before).
    2) 
   Create two separate login pages : 1 for classical users, and another one only
   for admins. On the clasical login page, add the following CSS by editing the 
   page :
 *     ```
       <style type="text/CSS">
       .clef-login-container{
       display: none!important;
       }
       </style>
       ```
   
 * This CSS will hide the Clef login button for classical users who don’t use clef,
   but it will still be shown on the admin login page.
 * I precise that I use Theme My Login. Therefore when I want to create a login 
   page I just need to put the shortcode [theme-my-login] on it and the page automatically
   shows a login form.
    If you use another login system it might not work that way.
 * This solution works well on my website since I don’t use a login widget because
   of spam (captcha is not nice in the sidebar), but it won’t probably fit with 
   other websites.
 * The best is still to encourage users to use Clef since it’s pretty easy 😉
 *  Plugin Contributor [inthylight](https://wordpress.org/support/users/inthylight/)
 * (@inthylight)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/use-only-for-administrators/#post-7265632)
 * [@auberlu](https://wordpress.org/support/users/auberlu/),
 * Thanks so much for sharing your solution.
 * Have a wonderful Wednesday!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Use only for administrators’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wpclef_4ab6e4.svg)
 * [Clef Two-Factor Authentication](https://wordpress.org/plugins/wpclef/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpclef/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpclef/)
 * [Active Topics](https://wordpress.org/support/plugin/wpclef/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpclef/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpclef/reviews/)

## Tags

 * [clef](https://wordpress.org/support/topic-tag/clef/)

 * 3 replies
 * 2 participants
 * Last reply from: [inthylight](https://wordpress.org/support/users/inthylight/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/use-only-for-administrators/#post-7265632)
 * Status: resolved