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!

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 website theme's functions.php file and update it.

Note: It’s recommended to use a child theme to edit the functions.php file instead of the parent theme. There are chances to lose the modified code when you update your theme. It might cause some adverse effects on your website.

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 website 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 January 3, 2024

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

Where can I get support for LoginPress?

If you need help with LoginPress, you can contact us here. We’ll be happy to answer any questions about the plugin.

Do you have an affiliate program?

Yes, we have an affiliate program that you can sign up for here. As an affiliate, you’ll earn a commission on every sale you refer to us.

Do you offer refunds?

Yes, we offer a 14-day money-back guarantee on all of our plans. If you’re unsatisfied with LoginPress, simply contact us within 14 days of your purchase, and we’ll process a refund.

Can I upgrade my license after my initial purchase?

Yes, you can upgrade your LoginPress license at any time. Simply log into your account and go to the My Downloads page. From here, you can upgrade your license and download the latest version of the plugin.

Will LoginPress slow down my website?

No, LoginPress will not slow down your website. The plugin is lightweight and only loads the necessary files when someone tries to access your login page.

three shapes icon

If you Still have Questions?

Get In Touch