Removing Social Buttons from the Login Widget with Hook

LoginPress is one of the best WordPress login page customizer plugins that enables you to customize the login page for your WordPress site exactly how you want it. You can keep track of your custom login changes before you save them! That’s awesome.

Suppose you’ve activated LoginPress Social Login and Login Widget Add-Ons simultaneously. The Social buttons will appear on your WordPress site's login form and sidebar. 

Social Buttons on the login form:

Social Buttons on the login form

Social Buttons in the Login Widget:

Social Login Buttons in the Login Widget

What if you want to keep the social buttons on the login form and remove them from the sidebar of your WordPress site?

This knowledgebase article will show you how to remove Social buttons from Login Widget while using LoginPress Social Login Add-on.

Removing Social buttons from Login Widget will be done with coding, so buckle up!

Removing Social Buttons From the Login Widget

If you want to have the social buttons on the default WordPress login form but want to remove them from the Login Widget, then you have to add the following piece of code in your child theme's functions.php file and update it.

Here is the hook:

function loginpress_social_widget_callback( $toggle ) {
 $toggle = false;
 return $toggle;
add_filter( 'loginpress_social_widget', 'loginpress_social_widget_callback' )

Once you’ve added the hook in your child theme's functions.php file, the social buttons will be removed from the Login Widget.

Removing Social Buttons from the Login Widget

All done! Now it’s your turn! Remove Social buttons from the Login Widget while using LoginPress’s Social Login Add-on.

Let us know how much this knowledgebase article helped you!
If you have any doubts or questions related to this matter, please don’t hesitate to contact our support team.

Still stuck? How can we help?

Updated on December 1, 2022

LoginPress Support
triangular shape yellowish icon

Frequently Asked Questions (FAQs)

These FAQs answer the most common questions about our WordPress custom login page plugin.

three shapes icon

Is LoginPress WPML Compatible?

LoginPress is fully supported with multilingual. LoginPress is also compatible with WPML Plugin, which means you can easily translate your login page with WPML plugin according to the given translation options in the WPML plugin.

Is LoginPress translation ready?

Yes, LoginPress has full translation and localization support via the LoginPress textdomain. All .mo and .po translation files should go into the languages folder in the base of the plugin.

Is coding skills needed to use LoginPress?

No, It is very easy to setup. Just plug and play. Have fun!

How to Install or Use LoginPress Pro?

Step-by-step instructions on How to Upgrade from existing Free version to Pro
1. You have installed and set up the Free version already.
2. Upload the Pro version.
3. Pro features will be enabled automatically.
4. You don’t need to set up Free version options again.
5. Setup Pro features like Google fonts, Google reCaptcha, Choose themes, etc.

Where is my license key?

License key is the Order ID which looks like in this format.
You can find it in the email Sales Receipt.

three shapes icon

If you Still have Questions?

Get In Touch